Skip to content

Commit 1a86de5

Browse files
committed
CDRIVER-2558 latest mongos has begun txn support
1 parent 7903a35 commit 1a86de5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/libmongoc/tests/test-mongoc-transactions.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ test_transactions_supported (void *ctx)
5555
bson_error_t error;
5656
bool r;
5757

58+
if (test_framework_is_mongos ()) {
59+
return;
60+
}
61+
5862
supported = test_framework_max_wire_version_at_least (7) &&
5963
test_framework_is_replset ();
6064
client = test_framework_client_new ();
@@ -119,11 +123,13 @@ test_transactions_install (TestSuite *suite)
119123
test_framework_skip_if_not_replset,
120124
test_framework_skip_if_max_wire_version_less_than_7);
121125

126+
/* skip mongos for now - txn support coming in 4.1.0 */
122127
TestSuite_AddFull (suite,
123128
"/transactions/supported",
124129
test_transactions_supported,
125130
NULL,
126131
NULL,
127132
test_framework_skip_if_no_sessions,
128-
test_framework_skip_if_no_crypto);
133+
test_framework_skip_if_no_crypto,
134+
test_framework_skip_if_mongos);
129135
}

0 commit comments

Comments
 (0)