Skip to content
Snippets Groups Projects
Commit 95de80f3 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

test: add test for graceful stopping

parent 63acfcbb
No related branches found
No related tags found
1 merge request!133fix(tarantool-sys): fix graceful stopping
Pipeline #6309 passed
......@@ -164,3 +164,12 @@ def test_propose_eval(instance: Instance):
assert instance.raft_propose_eval("_G.success = true")
assert instance.eval("return _G.success") is True
def test_graceful_stop(instance: Instance):
instance.terminate()
*_, last_xlog = sorted(
[f for f in os.listdir(instance.data_dir) if f.endswith(".xlog")]
)
with open(os.path.join(instance.data_dir, last_xlog), "rb") as f:
assert f.read()[-4:] == b"\xd5\x10\xad\xed"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment