From 25d2143a627531fc0475d639c1e8f657ccafa630 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 20 Sep 2022 13:21:34 +0200 Subject: Golang-ci-lint: Fixes --- internal/util/util_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/util/util_test.go') diff --git a/internal/util/util_test.go b/internal/util/util_test.go index 31d01e7..77af603 100644 --- a/internal/util/util_test.go +++ b/internal/util/util_test.go @@ -48,7 +48,7 @@ func Test_MakeRandomByteSlice(t *testing.T) { t.Fatalf("2, Got: %v, want: nil", randomErr) } - if bytes.Compare(random2, random) == 0 { + if bytes.Equal(random2, random) { t.Fatalf("Two random byteslices are the same: %v, %v", random2, random) } } @@ -56,7 +56,7 @@ func Test_MakeRandomByteSlice(t *testing.T) { func Test_GetCurrentTime(t *testing.T) { time_now := GetCurrentTime() - time.Sleep(1) + time.Sleep(1 * time.Second) time_after_1_second := GetCurrentTime() -- cgit v1.2.3