Skip to content

Commit a389342

Browse files
hackaugustoLefterisJP
authored andcommitted
cached_genesis enabled only for geth
1 parent e9ccee0 commit a389342

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

raiden/tests/fixtures/blockchain.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ def cached_genesis(request, blockchain_type):
125125
if not request.config.option.blockchain_cache:
126126
return
127127

128+
if blockchain_type != 'geth':
129+
return
130+
128131
# this will create the tester _and_ deploy the Registry
129132
deploy_key = request.getfixturevalue('deploy_key')
130133
private_keys = request.getfixturevalue('private_keys')

raiden/tests/integration/test_settlement.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# -*- coding: utf-8 -*-
22
import pytest
33

4-
from ethereum import slogging
5-
64
from raiden.mtree import check_proof
75
from raiden.tests.utils.blockchain import wait_until_block
86
from raiden.tests.utils.messages import setup_messages_cb
@@ -27,7 +25,6 @@
2725
from raiden.utils import sha3, privatekey_to_address
2826

2927
# pylint: disable=too-many-locals,too-many-statements
30-
slogging.configure(':DEBUG')
3128

3229

3330
def assert_secretreveal_or_withdraw(state_change, secret, channel_address, raiden_address):
@@ -174,7 +171,7 @@ def test_settlement(raiden_network, settle_timeout, reveal_timeout):
174171
state_change3 = state_changes[2]
175172
state_change4 = state_changes[3]
176173

177-
assert(isinstance(state_change1, ContractReceiveClosed))
174+
assert isinstance(state_change1, ContractReceiveClosed)
178175
assert state_change1.channel_address == nettingaddress0
179176
assert state_change1.closing_address == bob_app.raiden.address
180177
assert state_change1.block_number == alice_bob_channel.external_state.closed_block
@@ -183,7 +180,7 @@ def test_settlement(raiden_network, settle_timeout, reveal_timeout):
183180
assert_secretreveal_or_withdraw(state_change2, secret, nettingaddress0, bob_app.raiden.address)
184181
assert_secretreveal_or_withdraw(state_change3, secret, nettingaddress0, bob_app.raiden.address)
185182

186-
assert(isinstance(state_change4, ContractReceiveSettled))
183+
assert isinstance(state_change4, ContractReceiveSettled)
187184
assert state_change4.channel_address == nettingaddress0
188185
assert state_change4.block_number == bob_alice_channel.external_state.settled_block
189186

@@ -347,7 +344,7 @@ def test_start_end_attack(token_addresses, raiden_chain, deposit, reveal_timeout
347344

348345
@pytest.mark.parametrize('blockchain_type', ['geth'])
349346
@pytest.mark.parametrize('number_of_nodes', [2])
350-
def test_automatic_dispute(raiden_network, deposit, settle_timeout, reveal_timeout):
347+
def test_automatic_dispute(raiden_network, deposit, settle_timeout):
351348
app0, app1 = raiden_network
352349
channel0 = app0.raiden.channelgraphs.values()[0].partneraddress_channel.values()[0]
353350
channel1 = app1.raiden.channelgraphs.values()[0].partneraddress_channel.values()[0]

0 commit comments

Comments
 (0)