We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7161bcd commit 2d699d9Copy full SHA for 2d699d9
mapreduce_test.go
@@ -337,7 +337,7 @@ func TestMapReducePanic(t *testing.T) {
337
panic("panic")
338
}
339
})
340
- assert.Nil(t, v)
+ assert.Equal(t, 0, v)
341
assert.NotNil(t, err)
342
assert.Equal(t, "panic", err.Error())
343
@@ -398,7 +398,7 @@ func TestMapReduceWithoutReducerWrite(t *testing.T) {
398
// not calling writer.Write(...), should not panic
399
400
assert.Equal(t, ErrReduceNoOutput, err)
401
- assert.Nil(t, res)
+ assert.Equal(t, 0, res)
402
403
404
func TestMapReduceVoidPanicInReducer(t *testing.T) {
0 commit comments