Skip to content

Commit 0db413e

Browse files
Apply suggestion from @prestonvasquez
Co-authored-by: Preston Vasquez <[email protected]>
1 parent b61f4b1 commit 0db413e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/integration/cursor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func TestCursor_All(t *testing.T) {
251251
// Find with batchSize 2 so All will run getMore for next 3 docs and error.
252252
cur, err := mt.Coll.Find(context.Background(), bson.D{},
253253
options.Find().SetBatchSize(2))
254-
assert.Nil(mt, err, "Find error: %v", err)
254+
require.NoError(mt, err, "Find error: %v", err)
255255

256256
// Create a context and immediately cancel it.
257257
canceledCtx, cancel := context.WithCancel(context.Background())

0 commit comments

Comments
 (0)