diff --git a/internal/common/sleep_test.go b/internal/common/sleep_test.go index bba4661..5ecb6ea 100644 --- a/internal/common/sleep_test.go +++ b/internal/common/sleep_test.go @@ -2,7 +2,6 @@ package common_test import ( "context" - "errors" "testing" "time" @@ -14,7 +13,7 @@ func TestSleep(test *testing.T) { var t = func(name string, ctx context.Context, expected error) { test.Run(name, func(test *testing.T) { var err = common.Sleep(ctx, dt) - if !errors.Is(err, expected) { + if err != expected { test.Errorf("expected %v, got %v", expected, err) } })