@@ -15,7 +15,7 @@ fn test_default_configuration_polls_all_types() {
1515 . build ( )
1616 . expect ( "Failed to build default config" ) ;
1717
18- let effective = config. effective_task_types ( ) ;
18+ let effective = config. task_types ;
1919 assert ! (
2020 effective. polls_workflows( ) ,
2121 "Should poll workflows by default"
@@ -38,7 +38,7 @@ fn test_workflow_only_worker() {
3838 . build ( )
3939 . expect ( "Failed to build workflow-only config" ) ;
4040
41- let effective = config. effective_task_types ( ) ;
41+ let effective = config. task_types ;
4242 assert ! ( effective. polls_workflows( ) , "Should poll workflows" ) ;
4343 assert ! ( !effective. polls_activities( ) , "Should NOT poll activities" ) ;
4444 assert ! ( !effective. polls_nexus( ) , "Should NOT poll nexus" ) ;
@@ -55,28 +55,12 @@ fn test_activity_and_nexus_worker() {
5555 . build ( )
5656 . expect ( "Failed to build activity+nexus config" ) ;
5757
58- let effective = config. effective_task_types ( ) ;
58+ let effective = config. task_types ;
5959 assert ! ( !effective. polls_workflows( ) , "Should NOT poll workflows" ) ;
6060 assert ! ( effective. polls_activities( ) , "Should poll activities" ) ;
6161 assert ! ( effective. polls_nexus( ) , "Should poll nexus" ) ;
6262}
6363
64- #[ test]
65- fn test_backward_compatibility_with_no_remote_activities ( ) {
66- let config = WorkerConfigBuilder :: default ( )
67- . namespace ( "default" )
68- . task_queue ( "test-queue" )
69- . versioning_strategy ( default_versioning_strategy ( ) )
70- . no_remote_activities ( true )
71- . build ( )
72- . expect ( "Failed to build config with no_remote_activities" ) ;
73-
74- let effective = config. effective_task_types ( ) ;
75- assert ! ( effective. polls_workflows( ) , "Should poll workflows" ) ;
76- assert ! ( !effective. polls_activities( ) , "Should NOT poll activities" ) ;
77- assert ! ( effective. polls_nexus( ) , "Should poll nexus" ) ;
78- }
79-
8064#[ test]
8165fn test_empty_task_types_fails_validation ( ) {
8266 let result = WorkerConfigBuilder :: default ( )
@@ -115,26 +99,6 @@ fn test_workflow_cache_without_workflows_fails() {
11599 ) ;
116100}
117101
118- #[ test]
119- fn test_conflicting_no_remote_activities_and_task_types_fails ( ) {
120- #[ allow( deprecated) ]
121- let result = WorkerConfigBuilder :: default ( )
122- . namespace ( "default" )
123- . task_queue ( "test-queue" )
124- . versioning_strategy ( default_versioning_strategy ( ) )
125- . task_types ( WorkerTaskTypes :: ACTIVITIES )
126- . no_remote_activities ( true )
127- . build ( ) ;
128-
129- assert ! ( result. is_err( ) , "Conflicting settings should fail" ) ;
130-
131- let err = result. err ( ) . unwrap ( ) . to_string ( ) ;
132- assert ! (
133- err. contains( "Conflicting configuration" ) ,
134- "Error should mention conflict: {err}" ,
135- ) ;
136- }
137-
138102#[ test]
139103fn test_all_combinations ( ) {
140104 let combinations = [
@@ -165,7 +129,7 @@ fn test_all_combinations() {
165129 . build ( )
166130 . unwrap_or_else ( |e| panic ! ( "Failed to build config for {description}: {e:?}" ) ) ;
167131
168- let effective = config. effective_task_types ( ) ;
132+ let effective = config. task_types ;
169133 assert_eq ! (
170134 effective, task_types,
171135 "Effective types should match for {description}" ,
0 commit comments