Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikandfor committed Jan 7, 2024
1 parent 520fb6e commit 906e607
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions multi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ func TestMulti(tb *testing.T) {
ctx := context.Background()

var sum [2]int
var commitPanics bool
var commitPanics [2]bool

bc := batch.NewMulti(len(sum), func(ctx context.Context, coach int) (int, error) {
if commitPanics {
if commitPanics[coach] {
tb.Logf("commit PANICS")
panic("commit PaNiC")
}
Expand Down Expand Up @@ -85,7 +85,7 @@ func TestMulti(tb *testing.T) {
}

if j == 1 {
commitPanics = i == 4
commitPanics[coach] = i == 4
}

if j == 1 && i == 5 {
Expand Down

0 comments on commit 906e607

Please sign in to comment.