Skip to content
Snippets Groups Projects
Commit 3030f27f authored by Vladimir Davydov's avatar Vladimir Davydov
Browse files

test: fix box/backup spurious failure

Follow-up 07191842 ("gc: run garbage collection in background").

Closes #3855
parent a032ce7c
No related branches found
No related tags found
No related merge requests found
......@@ -109,8 +109,11 @@ do_backup(files)
box.backup.stop()
---
...
-- Previous checkpoint must have been removed by garbage collection
-- as soon as box.backup.stop() was called.
-- Wait for the garbage collector to remove the previous checkpoint.
test_run:wait_cond(function() return #box.info.gc().checkpoints == 1 end, 10)
---
- true
...
files = box.backup.start(1) -- error: checkpoint not found
---
- error: Can't find snapshot
......
......@@ -70,8 +70,8 @@ box.snapshot()
do_backup(files)
box.backup.stop()
-- Previous checkpoint must have been removed by garbage collection
-- as soon as box.backup.stop() was called.
-- Wait for the garbage collector to remove the previous checkpoint.
test_run:wait_cond(function() return #box.info.gc().checkpoints == 1 end, 10)
files = box.backup.start(1) -- error: checkpoint not found
-- Check that we can restore from the backup we've just made.
......
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