Skip to content

Commit 901fbf3

Browse files
committed
test: refactor process exit tests to NOT check if ExitStarted even was emitted
1 parent 6dc88a2 commit 901fbf3

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

plasma_framework/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
"solidoc": "^1.0.5"
1515
},
1616
"devDependencies": {
17+
"elliptic": ">=6.5.3",
1718
"@codechecks/client": "^0.1.10",
18-
"@openzeppelin/test-helpers": "^0.5.6",
1919
"chai": "^4.2.0",
2020
"coveralls": "^3.0.6",
21-
"elliptic": ">=6.5.3",
2221
"eslint": "^5.3.0",
2322
"eslint-config-airbnb-base": "^13.1.0",
2423
"eslint-plugin-import": "^2.17.3",

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,11 @@ 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()
3130

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

4136
testlang.forward_timestamp(2 * MIN_EXIT_PERIOD + 1)
4237
testlang.process_exits(NULL_ADDRESS, 0, 100)

0 commit comments

Comments
 (0)