Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/relay/test/relay_runtime_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ local function define_tests()
control("shutdown", 2)
test.eq(join().client_count, 1)
control("resume")
receive(response) -- resume is echoed by the fixture
-- The fixture also answers each shutdown. A shutdown answer that reaches the
-- hub after the JOIN above is forwarded to this client, so skip it.
local resumed = receive(response)
while resumed.topic == "shutdown" do resumed = receive(response) end
test.eq(resumed.topic, "resume") -- resume is echoed by the fixture
send({type = "session_release"})
test.eq(receive(response).plugin_pid, plugin.pid)
send({type = "session_echo", data = "after reconnect"})
Expand Down
Loading