Skip to content

Commit

Permalink
add another test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinyue.Wang authored and Xinyue.Wang committed Jun 27, 2023
1 parent 4e44750 commit 8110e1a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wait_any_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8110e1a

Please sign in to comment.