diff --git a/mongo/cursor_test.go b/mongo/cursor_test.go index 0d66576707..31778d7d58 100644 --- a/mongo/cursor_test.go +++ b/mongo/cursor_test.go @@ -102,7 +102,7 @@ func TestCursor(t *testing.T) { t.Run("TestAll", func(t *testing.T) { t.Run("errors if argument is not pointer to slice", func(t *testing.T) { cursor, err := newCursor(newTestBatchCursor(1, 5), nil, nil) - assert.NoError(t, err, "newCursor error: %v", err) + require.NoError(t, err, "newCursor error: %v", err) err = cursor.All(context.Background(), []bson.D{}) assert.Error(t, err, "expected error, got nil") })