We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b5288d commit d4da564Copy full SHA for d4da564
test/async/websocket/client.rb
@@ -17,9 +17,11 @@
17
connection.write(message)
18
end
19
20
- connection.close
+ connection.shutdown
21
rescue Protocol::WebSocket::ClosedError
22
# Ignore this error.
23
+ ensure
24
+ connection.close
25
end or Protocol::HTTP::Response[404, {}, []]
26
27
@@ -56,6 +58,7 @@
56
58
expect(message.to_str).to be == "Hello World!"
57
59
60
connection.close
61
+
62
expect(task.children).to be(:empty?)
63
end.wait
64
@@ -68,6 +71,7 @@
68
71
69
72
70
73
connection.close(Protocol::WebSocket::Error::GOING_AWAY, "Bye!")
74
75
76
77
0 commit comments