Skip to content

Commit 398dcce

Browse files
committed
refactor: revert previous python test change
1 parent 57df1d3 commit 398dcce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plasma_framework/python_tests/tests/contracts/root_chain/test_process_exits.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,16 @@ def test_process_exits_standard_exit_should_succeed(testlang, w3, num_outputs, p
2727
utxo_pos, output_owner = prepare_exitable_utxo(testlang, [], amount, [], num_outputs)
2828

2929
pre_balance = testlang.get_balance(output_owner)
30+
testlang.flush_events()
3031

3132
testlang.start_standard_exit(utxo_pos, output_owner)
3233
gasCost = w3.eth.last_gas_used * 100
3334
_, _, exit_id = plasma_framework.getNextExit(plasma_framework.eth_vault_id, NULL_ADDRESS_HEX)
34-
testlang.flush_events()
35+
start_exit_events = testlang.flush_events()
36+
37+
assert_events(start_exit_events,
38+
[('ExitStarted', {"owner": output_owner.address, "exitId": exit_id, "utxoPos": utxo_pos}),
39+
('ExitQueued', {"exitId": exit_id})])
3540

3641
testlang.forward_timestamp(2 * MIN_EXIT_PERIOD + 1)
3742
testlang.process_exits(NULL_ADDRESS, 0, 100)

0 commit comments

Comments
 (0)