Skip to content

Commit

Permalink
fix: apply suggestion
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
  • Loading branch information
hlts2 committed Jun 22, 2020
1 parent ee5d1db commit 3662e95
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/errgroup/group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ func Test_group_Limitation(t *testing.T) {
limit: 1,
},
fields: fields{
limitation: make(chan struct{}),
limitation: make(chan struct{}, 1),
},
want: want{
want: &group{
Expand Down Expand Up @@ -707,7 +707,6 @@ func Test_group_Wait(t *testing.T) {
return test{
name: "returns nil after all goroutne returns",
fields: fields{
limitation: make(chan struct{}),
enableLimitation: func() (el atomic.Value) {
el.Store(false)
return
Expand Down Expand Up @@ -736,7 +735,6 @@ func Test_group_Wait(t *testing.T) {
{
name: "returns error when g.errs is not nil",
fields: fields{
limitation: make(chan struct{}),
errs: []error{
errors.New("err1"),
errors.New("err2"),
Expand Down

0 comments on commit 3662e95

Please sign in to comment.