Merge pull request #1067 from mmichal10/fix-flushing-test

tests: allow the flushing thread to flush
This commit is contained in:
Karolina Rogowska 2022-02-18 15:43:03 +01:00 committed by GitHub
commit 05b6922a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,6 +323,7 @@ def test_interrupt_cache_mode_switch_immediately(cache_mode, filesystem):
with TestRun.step("Start switching cache mode."):
flush_pid = TestRun.executor.run_in_background(cli.set_cache_mode_cmd(
str(CacheMode.DEFAULT.name.lower()), str(cache.cache_id), "yes"))
wait_for_flushing(cache, core)
with TestRun.step("Send interruption signal."):
TestRun.executor.run(f"kill -s SIGINT {flush_pid}")