From 8110e1a011ccd4b373b5869bbc0e9ce989be313d Mon Sep 17 00:00:00 2001 From: "Xinyue.Wang" Date: Tue, 27 Jun 2023 16:23:46 -0700 Subject: [PATCH] add another test case --- wait_any_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wait_any_test.go b/wait_any_test.go index 75fb650..b0c4257 100644 --- a/wait_any_test.go +++ b/wait_any_test.go @@ -9,6 +9,14 @@ import ( "github.com/stretchr/testify/assert" ) +func TestWaitAnyNoTask(t *testing.T) { + t.Parallel() + ctx, _ := newTestContextWithTimeout(t, 2*time.Second) + + err := asynctask.WaitAny(ctx, nil) + assert.NoError(t, err) +} + func TestWaitAny(t *testing.T) { t.Parallel() ctx, cancelTaskExecution := newTestContextWithTimeout(t, 2*time.Second)