Skip to content

Commit 2bc2675

Browse files
committed
small type checking fixes
1 parent 1dc97f6 commit 2bc2675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

psapi_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func TestGetPerformanceInfo(t *testing.T) {
6363
assert.True(t, pi.KernelNonpaged <= pi.KernelTotal, "KernelNonpaged should not exceed KernelTotal")
6464

6565
// Verify that system cache is reasonable
66-
assert.True(t, pi.SystemCache >= 0, "SystemCache should be non-negative")
66+
assert.True(t, pi.SystemCache > 0, "SystemCache should be greater than 0")
6767
}
6868

6969
func TestGetProcessMemoryInfo(t *testing.T) {
@@ -86,7 +86,7 @@ func TestGetProcessMemoryInfo(t *testing.T) {
8686
assert.True(t, info.PrivateUsage > 0, "PrivateUsage should be greater than 0")
8787

8888
// Verify that page fault count is reasonable
89-
assert.True(t, info.PageFaultCount >= 0, "PageFaultCount should be non-negative")
89+
assert.True(t, info.PageFaultCount > 0, "PageFaultCount should be greater than 0")
9090
}
9191

9292
func TestGetProcessImageFileName(t *testing.T) {

0 commit comments

Comments
 (0)