From b06113e223193f8045a408759788e64aae1d9f79 Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Thu, 18 Mar 2021 17:59:22 +0300 Subject: [PATCH] Fix linter --- dupcall/dupcall_test.go | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/dupcall/dupcall_test.go b/dupcall/dupcall_test.go index 6092251..69fb771 100644 --- a/dupcall/dupcall_test.go +++ b/dupcall/dupcall_test.go @@ -51,7 +51,9 @@ func TestCall_Dedup(t *testing.T) { var call Call for i := 0; i < 10; i++ { - go call.Do(context.Background(), cb) + go func() { + _, _ = call.Do(context.Background(), cb) + }() } result, err := call.Do(context.Background(), cb) @@ -74,13 +76,17 @@ func TestCall_HalfCancel(t *testing.T) { var call Call for i := 0; i < 10; i++ { - go call.Do(context.Background(), cb) + go func() { + _, _ = call.Do(context.Background(), cb) + }() } for i := 0; i < 10; i++ { ctx, cancel := context.WithCancel(context.Background()) - go call.Do(ctx, cb) + go func() { + _, _ = call.Do(ctx, cb) + }() time.Sleep(time.Millisecond) cancel() @@ -109,7 +115,9 @@ func TestCall_FullCancel(t *testing.T) { for i := 0; i < 10; i++ { ctx, cancel := context.WithCancel(context.Background()) - go call.Do(ctx, cb) + go func() { + _, _ = call.Do(ctx, cb) + }() time.Sleep(time.Millisecond) cancel()