Skip to content

Commit fb23322

Browse files
committed
test: reconnect to console after server restart
The scenario is the following: 1. Create and start a server (TarantoolServer instance). 2. Stop it. 3. Call `<server>.admin(<command>)`. I intend to follow this scenario in a test case in the following commit. We should close old socket at stopping the server, because an attempt to write to the old socket may not fail even if the other end is already gone. If we'll close the console connection (TarantoolAdmin instance) explicitly, it'll be reconnected at the next usage. Part of #111
1 parent ad36ab0 commit fb23322

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

unit/suites/lib/tarantool_server.py

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ def start(self):
194194
self.wait_until_started()
195195

196196
def stop(self):
197+
self.admin.disconnect()
197198
if self.process.poll() is None:
198199
self.process.terminate()
199200
self.process.wait()

0 commit comments

Comments
 (0)