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
This commit is contained in:
Tim Burke 2020-09-21 16:40:05 -07:00
parent b13712949f
commit c73792c2e5

@ -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(