diff options
author | Tim Burke <tim.burke@gmail.com> | 2020-09-21 16:40:05 -0700 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2020-09-21 16:40:09 -0700 |
commit | c73792c2e55e4fbdff78a192a991e064a317e840 (patch) | |
tree | c31b845a5e8dcb83034211319bb1f4d62c9d2e95 | |
parent | b13712949fd58ba1332cb0507dd39853c0ee0efe (diff) | |
download | python-swiftclient-c73792c2e55e4fbdff78a192a991e064a317e840.tar.gz |
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
-rw-r--r-- | test/unit/test_shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
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( |