commit c73792c2e55e4fbdff78a192a991e064a317e840 Author: Tim Burke Date: Mon Sep 21 16:40:05 2020 -0700 tests: Make test_delete_container_versions less flakey Hammering that test in a tight loop, I'd often see failures due to ordering issues. Make the delete single-threaded to avoid that. Change-Id: Iff45be32a7c3f258214cce78001fd33ad0a39b8c diff --git a/test/unit/test_shell.py b/test/unit/test_shell.py index f94e5e2..46ba52c 100644 --- a/test/unit/test_shell.py +++ b/test/unit/test_shell.py @@ -1547,7 +1547,7 @@ class TestShell(unittest.TestCase): [None, []], ] connection.return_value.attempts = 0 - argv = ["", "delete", "--versions", "container"] + argv = ["", "delete", "--versions", "container", "--object-threads=1"] connection.return_value.head_object.return_value = {} swiftclient.shell.main(argv) connection.return_value.delete_container.assert_called_with(