Skip to content

Commit f44f868

Browse files
authored
CDRIVER-4106 Update numbers for existing SRV polling prose tests. (#845)
Only prose test 9 is currently implemented according to spec. Behavior of test_srv_polling_mocked does not conform to prose tests described by spec. Therefore, only names related to prose test 9 are updated with numbering. Prose tests 1 through 8 are to be implemented separately; see CDRIVER-4125.
1 parent 932e7e4 commit f44f868

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -633,8 +633,8 @@ _prose_loadbalanced_ping (mongoc_client_t *client)
633633
}
634634

635635
/*
636-
Implements the following prose test described in the SRV polling test README:
637-
Test that SRV polling is not done for load balalanced clusters. Connect to
636+
Implements prose test 9 as described in the SRV polling test README:
637+
Test that SRV polling is not done for load balanced clusters. Connect to
638638
mongodb+srv://test3.test.build.10gen.cc/?loadBalanced=true, mock the addition
639639
of the following DNS record, wait until 2*rescanSRVIntervalMS, and assert
640640
that the final topology description only contains one server
@@ -643,7 +643,7 @@ _prose_loadbalanced_ping (mongoc_client_t *client)
643643
localhost.test.build.10gen.cc.
644644
*/
645645
static void
646-
_prose_loadbalanced_run (bool pooled)
646+
_prose_test_9 (bool pooled)
647647
{
648648
mongoc_client_pool_t *pool;
649649
mongoc_uri_t *uri;
@@ -717,15 +717,15 @@ _prose_loadbalanced_run (bool pooled)
717717
}
718718

719719
static void
720-
test_prose_loadbalanced_single (void *unused)
720+
prose_test_9_single (void *unused)
721721
{
722-
_prose_loadbalanced_run (false);
722+
_prose_test_9 (false);
723723
}
724724

725725
static void
726-
test_prose_loadbalanced_pooled (void *unused)
726+
prose_test_9_pooled (void *unused)
727727
{
728-
_prose_loadbalanced_run (true);
728+
_prose_test_9 (true);
729729
}
730730

731731
void
@@ -757,16 +757,16 @@ test_dns_install (TestSuite *suite)
757757
* Discovery" spec. */
758758
TestSuite_AddFull (
759759
suite,
760-
"/initial_dns_seedlist_discovery/srv_polling/prose_loadbalanced/single",
761-
test_prose_loadbalanced_single,
760+
"/initial_dns_seedlist_discovery/srv_polling/prose_test_9/single",
761+
prose_test_9_single,
762762
NULL,
763763
NULL,
764764
test_dns_check_loadbalanced);
765765

766766
TestSuite_AddFull (
767767
suite,
768-
"/initial_dns_seedlist_discovery/srv_polling/prose_loadbalanced/pooled",
769-
test_prose_loadbalanced_pooled,
768+
"/initial_dns_seedlist_discovery/srv_polling/prose_test_9/pooled",
769+
prose_test_9_pooled,
770770
NULL,
771771
NULL,
772772
test_dns_check_loadbalanced);

0 commit comments

Comments
 (0)