@@ -253,13 +253,14 @@ if Phoenix.Sync.sandbox_enabled?() do
253253
254254 :ok = maybe_set_shared_mode ( owner , stack_id , opts )
255255
256- # give the inspector access to the sandboxed connection
257- Ecto.Adapters.SQL.Sandbox . allow ( repo , owner , Sandbox.Inspector . name ( stack_id ) )
258-
259256 # mark the stack as ready
260257 Electric.StatusMonitor . mark_pg_lock_acquired ( stack_id , owner )
261258 Electric.StatusMonitor . mark_replication_client_ready ( stack_id , owner )
262- Electric.StatusMonitor . mark_connection_pool_ready ( stack_id , owner )
259+ Electric.StatusMonitor . mark_connection_pool_ready ( stack_id , :admin , owner )
260+ Electric.StatusMonitor . mark_connection_pool_ready ( stack_id , :snapshot , owner )
261+ Electric.StatusMonitor . mark_integrety_checks_passed ( stack_id , owner )
262+ Electric.StatusMonitor . mark_shape_log_collector_ready ( stack_id , owner )
263+ Electric.StatusMonitor . mark_supervisor_processes_ready ( stack_id , owner )
263264
264265 api_config = Sandbox.Stack . config ( stack_id , repo )
265266 api = Electric.Application . api ( api_config )
@@ -292,7 +293,8 @@ if Phoenix.Sync.sandbox_enabled?() do
292293 defp generate_stack_id ( opts ) do
293294 tags = Keyword . get ( opts , :tags , % { } )
294295 # with parameterised tests the same file:line can be running simultaneously
295- uid = System . unique_integer ( ) |> to_string ( )
296+ uid = System . unique_integer ( [ :positive , :monotonic ] ) |> to_string ( )
297+ now = System . monotonic_time ( :microsecond )
296298
297299 suffix =
298300 case Map . fetch ( tags , :line ) do
@@ -306,7 +308,7 @@ if Phoenix.Sync.sandbox_enabled?() do
306308 :error -> ""
307309 end
308310
309- "#{ inspect ( __MODULE__ . Stack ) } #{ uid } #{ prefix } #{ suffix } "
311+ "#{ inspect ( __MODULE__ . Stack ) } #{ now } - #{ uid } #{ prefix } #{ suffix } "
310312 end
311313
312314 defp maybe_set_shared_mode ( owner , stack_id , opts ) do
0 commit comments