File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed
Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -466,6 +466,4 @@ defmodule Phoenix.Sync.RouterTest do
466466 end
467467 end
468468 end
469-
470-
471469end
Original file line number Diff line number Diff line change @@ -109,17 +109,18 @@ defmodule Phoenix.SyncTest do
109109 test_pid = self ( )
110110
111111 # Spawn a separate process to simulate HTTP request process
112- request_process = spawn_link ( fn ->
113- # Register shape from this process (simulates HTTP request)
114- shape = % PredefinedShape { relation: { "public" , "threads" } }
115- ShapeRequestRegistry . register_shape ( "key" , shape )
116-
117- # Wait for interruption signal
118- receive do
119- { :interrupt_shape , "key" , :server_interrupt } ->
120- send ( test_pid , { :got_interrupt , self ( ) } )
121- end
122- end )
112+ request_process =
113+ spawn_link ( fn ->
114+ # Register shape from this process (simulates HTTP request)
115+ shape = % PredefinedShape { relation: { "public" , "threads" } }
116+ ShapeRequestRegistry . register_shape ( "key" , shape )
117+
118+ # Wait for interruption signal
119+ receive do
120+ { :interrupt_shape , "key" , :server_interrupt } ->
121+ send ( test_pid , { :got_interrupt , self ( ) } )
122+ end
123+ end )
123124
124125 # Give process time to register
125126 Process . sleep ( 10 )
You can’t perform that action at this time.
0 commit comments