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:
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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user