Skip to content

Commit b61f4b1

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

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
@@ -237,7 +237,7 @@ func TestCursor_All(t *testing.T) {
237237

238238
var docs []bson.D
239239
err = cursor.All(context.Background(), &docs)
240-
assert.NotNil(mt, err, "expected change stream error, got nil")
240+
require.Error(mt, err, "expected change stream error, got nil")
241241

242242
// make sure that a mongo.CommandError is returned instead of a driver.Error
243243
mongoErr, ok := err.(mongo.CommandError)

0 commit comments

Comments
 (0)