Skip to content

Commit

Permalink
feat: wg wrpper test
Browse files Browse the repository at this point in the history
  • Loading branch information
daheige committed Jan 9, 2022
1 parent d41dd5e commit 9b73bb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion waitgroup/waitgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ func mockRecovery() {
}

func TestWrapper(t *testing.T) {
var wg = New(WithRecovery(mockRecovery))
var wg = New()
wg.WithRecover(mockRecovery)
wg.Wrap(func() {
log.Println("1111")
})
Expand Down

0 comments on commit 9b73bb5

Please sign in to comment.