Skip to content

Commit 0755d38

Browse files
committed
CDRIVER-2670 fix change streams read prefs test
1 parent 8e60a37 commit 0755d38

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/libmongoc/tests/test-mongoc-change-stream.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,9 @@ test_change_stream_live_read_prefs (void *test_ctx)
10391039
NULL /* session */);
10401040

10411041
/* Change stream client will resume with another cursor. */
1042-
ASSERT (mongoc_change_stream_next (stream, &next_doc));
1042+
/* depending on the server version, this may or may not receive another
1043+
* document on resume */
1044+
(void) mongoc_change_stream_next (stream, &next_doc);
10431045
ASSERT_OR_PRINT (
10441046
!mongoc_change_stream_error_document (stream, &err, &next_doc), err);
10451047

@@ -1522,6 +1524,8 @@ test_change_stream_install (TestSuite *suite)
15221524
NULL,
15231525
NULL,
15241526
test_framework_skip_if_not_rs_version_7,
1527+
test_framework_skip_if_no_sessions,
1528+
test_framework_skip_if_no_crypto,
15251529
_skip_if_no_change_stream_updates);
15261530
TestSuite_AddFull (suite,
15271531
"/change_stream/database",

0 commit comments

Comments
 (0)