Skip to content

Commit

Permalink
✅ fix
Browse files Browse the repository at this point in the history
Signed-off-by: vankichi <[email protected]>
  • Loading branch information
vankichi authored and actions-user committed Aug 5, 2020
1 parent 94eaa7d commit ab28116
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/worker/queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ func TestNewQueue(t *testing.T) {
return nil
}

if (w.want == nil && got != nil) || (w.want != nil && got == nil) {
return errors.Errorf("got = %v, want %v", got, w.want)
}

egComparator := func(want, got errgroup.Group) bool {
return reflect.DeepEqual(want, got)
}
Expand All @@ -78,7 +82,7 @@ func TestNewQueue(t *testing.T) {
}),
}
if diff := cmp.Diff(w.want, got, opts...); diff != "" {
return errors.Errorf("got = %v, want %v", got, w.want)
return errors.Errorf("diff = %s", diff)
}
return nil
}
Expand Down

0 comments on commit ab28116

Please sign in to comment.