Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/tests/unit/lib/test_rpc.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ryu/tests/unit/lib/test_rpc.py b/ryu/tests/unit/lib/test_rpc.py
index 599081e..779a85d 100644
--- a/ryu/tests/unit/lib/test_rpc.py
+++ b/ryu/tests/unit/lib/test_rpc.py
@@ -143,6 +143,12 @@ class Test_rpc(unittest.TestCase):
assert result == obj
assert isinstance(result, bytes)
+ def test_1_shutdown_wr(self):
+ # test if the server shutdown on disconnect
+ import socket
+ self._client_sock.shutdown(socket.SHUT_WR)
+ hub.joinall([self._server_thread])
+
def test_1_call_True(self):
c = rpc.Client(self._client_sock)
obj = True
--
1.8.1.5
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel