From c73792c2e55e4fbdff78a192a991e064a317e840 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Mon, 21 Sep 2020 16:40:05 -0700 Subject: [PATCH] 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 --- test/unit/test_shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/test_shell.py b/test/unit/test_shell.py index f94e5e23..46ba52ca 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(