From 796367e4fe843b6607956e9a8282b63b7a7bb7b2 Mon Sep 17 00:00:00 2001 From: Qingyang Hu Date: Fri, 20 Sep 2024 16:57:31 -0400 Subject: [PATCH] minor change --- mongo/cursor_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") })