Browse Source

[1828] Close socket sooner

Mukund Sivaraman 13 years ago
parent
commit
5f1c1f8ccf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bin/xfrout/tests/xfrout_test.py.in

+ 1 - 1
src/bin/xfrout/tests/xfrout_test.py.in

@@ -1218,9 +1218,9 @@ class TestUnixSockServer(unittest.TestCase):
             self.assertEqual((socket.AF_INET, socket.SOCK_STREAM,
                               ('127.0.0.1', 12345)),
                              self.unix._guess_remote(sock.fileno()))
+            sock.close()
             # Return it back
             xfrout.socket.has_ipv6 = True
-            sock.close()
 
     def test_receive_query_message(self):
         send_msg = b"\xd6=\x00\x00\x00\x01\x00"