This commit is contained in:
grossmj committed 2018-08-25 15:50:08 +07:00
1 parent 902de3dd47
commit f5dc635baa
4 files changed
+32 -20

No files matched your search

+3 -3
View File
@@ -150,9 +150,9 @@ def test_termination_callback(vm, async_run):
async_run(vm._termination_callback(0))
assert vm.status == "stopped"
async_run(queue.get(0)) #  Ping
async_run(queue.get(1)) #  Ping
(action, event, kwargs) = async_run(queue.get(0))
(action, event, kwargs) = async_run(queue.get(1))
assert action == "node.updated"
assert event == vm
@@ -170,7 +170,7 @@ def test_termination_callback_error(vm, tmpdir, async_run):
async_run(vm._termination_callback(1))
assert vm.status == "stopped"
async_run(queue.get(0)) # Ping
async_run(queue.get(1)) # Ping
(action, event, kwargs) = queue.get_nowait()
assert action == "node.updated"