fio.basename(snaps[1], '.snap') >= fio.basename(xlogs[1], '.xlog')
-- gh-2780 check that scheduled snapshots are performed
-fiber.sleep(3 * PERIOD)
--- check that it's not first snapshot
-test_run:grep_log("default", "saving snapshot", 400) == nil
-test_run:grep_log("default", "making snapshot", 400) ~= nil
+test_run:wait_log("default", "making snapshot", 400, 1.0 + PERIOD)
-- restore default options
box.cfg{checkpoint_interval = 3600 * 4, checkpoint_count = 4 }
-- gh-2780 check that scheduled snapshots are performed
-fiber.sleep(3 * PERIOD)
-- check that it's not first snapshot
-test_run:grep_log("default", "saving snapshot", 400) == nil
-test_run:grep_log("default", "making snapshot", 400) ~= nil
+wait_cond(function() return test_run:grep_log("default", "saving
snapshot", 400) == nil end)
+wait_cond(function() return test_run:grep_log("default", "making
snapshot", 400) ~= nil end)
Now we don't check that 'saving snapshot' does not appear during some
time period. Maybe we should check it after 'making snapshot'.