Skip to content

Commit 978c9c2

Browse files
committed
format.
1 parent 4a9d94e commit 978c9c2

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

test/phoenix/sync/router_test.exs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,4 @@ defmodule Phoenix.Sync.RouterTest do
466466
end
467467
end
468468
end
469-
470-
471469
end

test/phoenix/sync_test.exs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)