14
14
#undef MONGOC_LOG_DOMAIN
15
15
#define MONGOC_LOG_DOMAIN "topology-test"
16
16
17
- static int should_run_topology_tests (void )
18
- {
19
- if (getenv ("FOREVER_GREEN" )) {
20
- return 0 ;
21
- }
22
- return 1 ;
23
- }
24
17
25
18
static void
26
19
test_topology_client_creation (void )
@@ -238,13 +231,13 @@ _test_server_selection (bool try_once)
238
231
}
239
232
240
233
static void
241
- test_server_selection_try_once (void * context )
234
+ test_server_selection_try_once (void )
242
235
{
243
236
_test_server_selection (true);
244
237
}
245
238
246
239
static void
247
- test_server_selection_try_once_false (void * context )
240
+ test_server_selection_try_once_false (void )
248
241
{
249
242
_test_server_selection (false);
250
243
}
@@ -688,21 +681,21 @@ _test_connect_timeout (bool pooled, bool try_once)
688
681
689
682
690
683
static void
691
- test_connect_timeout_pooled (void * context )
684
+ test_connect_timeout_pooled (void )
692
685
{
693
686
_test_connect_timeout (true, false);
694
687
}
695
688
696
689
697
690
static void
698
- test_connect_timeout_single (void * context )
691
+ test_connect_timeout_single (void )
699
692
{
700
693
_test_connect_timeout (false, true);
701
694
}
702
695
703
696
704
697
static void
705
- test_connect_timeout_try_once_false (void * context )
698
+ test_connect_timeout_try_once_false (void )
706
699
{
707
700
_test_connect_timeout (false, false);
708
701
}
@@ -714,14 +707,14 @@ test_topology_install (TestSuite *suite)
714
707
TestSuite_Add (suite , "/Topology/client_creation" , test_topology_client_creation );
715
708
TestSuite_Add (suite , "/Topology/client_pool_creation" , test_topology_client_pool_creation );
716
709
TestSuite_Add (suite , "/Topology/server_selection_try_once_option" , test_server_selection_try_once_option );
717
- TestSuite_AddFull (suite , "/Topology/server_selection_try_once" , test_server_selection_try_once , NULL , NULL , should_run_topology_tests );
718
- TestSuite_AddFull (suite , "/Topology/server_selection_try_once_false" , test_server_selection_try_once_false , NULL , NULL , should_run_topology_tests );
710
+ TestSuite_Add (suite , "/Topology/server_selection_try_once" , test_server_selection_try_once );
711
+ TestSuite_Add (suite , "/Topology/server_selection_try_once_false" , test_server_selection_try_once_false );
719
712
TestSuite_Add (suite , "/Topology/invalidate_server" , test_topology_invalidate_server );
720
713
TestSuite_Add (suite , "/Topology/invalid_cluster_node" , test_invalid_cluster_node );
721
714
TestSuite_Add (suite , "/Topology/max_wire_version_race_condition" , test_max_wire_version_race_condition );
722
715
TestSuite_Add (suite , "/Topology/cooldown/standalone" , test_cooldown_standalone );
723
716
TestSuite_Add (suite , "/Topology/cooldown/rs" , test_cooldown_rs );
724
- TestSuite_AddFull (suite , "/Topology/connect_timeout/pooled" , test_connect_timeout_pooled , NULL , NULL , should_run_topology_tests );
725
- TestSuite_AddFull (suite , "/Topology/connect_timeout/single/try_once" , test_connect_timeout_single , NULL , NULL , should_run_topology_tests );
726
- TestSuite_AddFull (suite , "/Topology/connect_timeout/single/try_once_false" , test_connect_timeout_try_once_false , NULL , NULL , should_run_topology_tests );
717
+ TestSuite_Add (suite , "/Topology/connect_timeout/pooled" , test_connect_timeout_pooled );
718
+ TestSuite_Add (suite , "/Topology/connect_timeout/single/try_once" , test_connect_timeout_single );
719
+ TestSuite_Add (suite , "/Topology/connect_timeout/single/try_once_false" , test_connect_timeout_try_once_false );
727
720
}
0 commit comments