Signed-off-by: YAMAMOTO Takashi <yamam...@valinux.co.jp> --- 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel