33class AsyncSupervisorTest < ActiveSupport ::TestCase
44 self . use_transactional_tests = false
55
6- test "start as sidecar " do
7- supervisor = run_supervisor_as_sidecar
6+ test "start as non-standalone " do
7+ supervisor = run_non_standalone_supervisor
88 wait_for_registered_processes ( 4 )
99
1010 assert_registered_processes ( kind : "Supervisor(async)" )
@@ -16,7 +16,7 @@ class AsyncSupervisorTest < ActiveSupport::TestCase
1616 assert_no_registered_processes
1717 end
1818
19- test "start as separate process " do
19+ test "start standalone " do
2020 pid = run_supervisor_as_fork ( mode : :async )
2121 wait_for_registered_processes ( 4 )
2222
@@ -28,9 +28,9 @@ class AsyncSupervisorTest < ActiveSupport::TestCase
2828 assert_no_registered_processes
2929 end
3030
31- test "start as sidecar with provided configuration" do
31+ test "start as non-standalone with provided configuration" do
3232 config_as_hash = { workers : [ ] , dispatchers : [ { batch_size : 100 } ] }
33- supervisor = run_supervisor_as_sidecar ( load_configuration_from : config_as_hash )
33+ supervisor = run_non_standalone_supervisor ( load_configuration_from : config_as_hash )
3434 wait_for_registered_processes ( 2 ) # supervisor + dispatcher
3535
3636 assert_registered_processes ( kind : "Supervisor(async)" )
@@ -61,7 +61,7 @@ class AsyncSupervisorTest < ActiveSupport::TestCase
6161 dispatchers : [ ]
6262 }
6363
64- supervisor = run_supervisor_as_sidecar ( load_configuration_from : config_as_hash )
64+ supervisor = run_non_standalone_supervisor ( load_configuration_from : config_as_hash )
6565 wait_for_registered_processes ( 3 )
6666 assert_registered_processes ( kind : "Supervisor(async)" )
6767
@@ -72,7 +72,7 @@ class AsyncSupervisorTest < ActiveSupport::TestCase
7272 end
7373
7474 private
75- def run_supervisor_as_sidecar ( **kwargs )
76- SolidQueue ::Supervisor . start ( mode : :async , sidecar : true , **kwargs )
75+ def run_non_standalone_supervisor ( **kwargs )
76+ SolidQueue ::Supervisor . start ( mode : :async , standalone : false , **kwargs )
7777 end
7878end
0 commit comments