From 68ee35c19c7d86df3f2d92567af8e5ccca646d84 Mon Sep 17 00:00:00 2001 From: Stefano Balzarotti Date: Sun, 28 Sep 2025 20:54:52 +0200 Subject: [PATCH] linter --- cpu/cpu_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/cpu_test.go b/cpu/cpu_test.go index e0529b9..01ac1a2 100644 --- a/cpu/cpu_test.go +++ b/cpu/cpu_test.go @@ -104,8 +104,8 @@ func TestInfo(t *testing.T) { assert.NotEmptyf(t, vv.ModelName, "could not get CPU Info: %v", vv) assert.NotEmptyf(t, vv.VendorID, "could not get Vendor ID: %v", vv) assert.NotEmptyf(t, vv.VendorID, "could not get CPU Family: %v", vv) - assert.Greaterf(t, vv.Mhz, float64(0), "could not get CPU Mhz: %v", vv) - assert.Greaterf(t, vv.Cores, int32(0), "could not get CPU Cores: %v", vv) + assert.Positivef(t, vv.Mhz, "could not get CPU Mhz: %v", vv) + assert.Positivef(t, vv.Cores, "could not get CPU Cores: %v", vv) } t.Log(v) } -- knotmirror 0.0.1