Skip to content

Commit 2d699d9

Browse files
committed
fix tests
1 parent 7161bcd commit 2d699d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mapreduce_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ func TestMapReducePanic(t *testing.T) {
337337
panic("panic")
338338
}
339339
})
340-
assert.Nil(t, v)
340+
assert.Equal(t, 0, v)
341341
assert.NotNil(t, err)
342342
assert.Equal(t, "panic", err.Error())
343343
}
@@ -398,7 +398,7 @@ func TestMapReduceWithoutReducerWrite(t *testing.T) {
398398
// not calling writer.Write(...), should not panic
399399
})
400400
assert.Equal(t, ErrReduceNoOutput, err)
401-
assert.Nil(t, res)
401+
assert.Equal(t, 0, res)
402402
}
403403

404404
func TestMapReduceVoidPanicInReducer(t *testing.T) {

0 commit comments

Comments
 (0)