Skip to content

Commit 62354ea

Browse files
committed
Fix TestVirtual_memory on OpenBSD
On OpenBSD, the total is used + free + cached + inactive like on macOS. Signed-off-by: Tobias Klauser <[email protected]>
1 parent c466301 commit 62354ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mem/mem_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func TestVirtual_memory(t *testing.T) {
3333
case "windows":
3434
total = v.Used + v.Available
3535
totalStr = "used + available"
36-
case "darwin":
36+
case "darwin", "openbsd":
3737
total = v.Used + v.Free + v.Cached + v.Inactive
3838
totalStr = "used + free + cached + inactive"
3939
case "freebsd":

0 commit comments

Comments
 (0)