From 62267a595664410e0824fb77cb48a03418474188 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Sat, 21 Dec 2024 14:04:18 +0100 Subject: [PATCH] enable all rules of testifylint linter Signed-off-by: Matthieu MOREL --- .golangci.yml | 6 +----- process/process_linux_test.go | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 00ceb01af..1aeb6fcb9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -58,8 +58,4 @@ linters-settings: - io - os testifylint: - disable: - - expected-actual - - float-compare - - require-error - enabel-all: true \ No newline at end of file + enable-all: true diff --git a/process/process_linux_test.go b/process/process_linux_test.go index 71364676b..11b964517 100644 --- a/process/process_linux_test.go +++ b/process/process_linux_test.go @@ -172,7 +172,7 @@ func TestFillFromTIDStatWithContext_lx_brandz(t *testing.T) { if err != nil { t.Error(err) } - assert.Equal(t, float64(0), cpuTimes.Iowait) + assert.Zero(t, cpuTimes.Iowait) } }