Skip to content

Commit 3473d52

Browse files
committed
CDRIVER-1024: bypassDocumentValidation test fails
This issue has been fixed in currently nightlies (and RC5) Revert "skip bypassValidation test with auth" This reverts commit 9491517.
1 parent e9863ec commit 3473d52

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

tests/test-write-commands.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -240,25 +240,12 @@ test_bypass_validation (void *context)
240240
mongoc_client_destroy (client);
241241
}
242242

243-
244-
static int
245-
should_test_bypass (void)
246-
{
247-
/* skip bypassDocumentValidation test with auth until SERVER-21659 fixed */
248-
char *admin_user = test_framework_get_admin_user ();
249-
int ret = !admin_user && test_framework_max_wire_version_at_least (4);
250-
251-
bson_free (admin_user);
252-
253-
return ret;
254-
}
255-
256-
257243
void
258244
test_write_command_install (TestSuite *suite)
259245
{
260246
TestSuite_Add (suite, "/WriteCommand/split_insert", test_split_insert);
261247
TestSuite_Add (suite, "/WriteCommand/invalid_write_concern", test_invalid_write_concern);
262248
TestSuite_AddFull (suite, "/WriteCommand/bypass_validation", test_bypass_validation,
263-
NULL, NULL, should_test_bypass);
249+
NULL, NULL,
250+
test_framework_skip_if_max_version_version_less_than_4);
264251
}

0 commit comments

Comments
 (0)