We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa8f115 commit e98c377Copy full SHA for e98c377
unit/suites/test_reconnect.py
@@ -66,6 +66,23 @@ def test_02_wrong_auth(self):
66
con.close()
67
self.srv.stop()
68
69
+ def test_03_connect_after_close(self):
70
+ # Start a server and connect to it.
71
+ self.srv.start()
72
+ con = tarantool.Connection(self.srv.host, self.srv.args['primary'])
73
+ con.ping()
74
+
75
+ # Close the connection and connect again.
76
+ con.close()
77
+ con.connect()
78
79
+ # Verify that the connection is alive.
80
81
82
+ # Close the connection and stop the server.
83
84
+ self.srv.stop()
85
86
@classmethod
87
def tearDownClass(self):
88
self.srv.clean()
0 commit comments