Skip to content

Commit 0d141b4

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

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
@@ -102,7 +102,7 @@ func TestCursor_TryNext(t *testing.T) {
102102
// insert a document because a tailable cursor will only have a non-zero ID if the initial Find matches
103103
// at least one document
104104
_, err := mt.Coll.InsertOne(context.Background(), bson.D{{"x", 1}})
105-
assert.Nil(mt, err, "InsertOne error: %v", err)
105+
require.NoError(mt, err, "InsertOne error: %v", err)
106106

107107
cursor, err := mt.Coll.Find(context.Background(), bson.D{}, options.Find().SetCursorType(options.Tailable))
108108
assert.Nil(mt, err, "Find error: %v", err)

0 commit comments

Comments
 (0)