Skip to content

Commit

Permalink
bugfixes - rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed May 8, 2019
1 parent 3fcfa0e commit 06b71b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion brownie/cli/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def run_test(filename, network, idx):
if traceback_info and traceback_info[-1][2] == ReadTimeout:
print(" {0[error]}WARNING{0}: RPC crashed, terminating test".format(color))
network.rpc.kill(False)
network.rpc.launch()
network.rpc.launch(CONFIG['active_network']['test-rpc'])
break
test_history.update(TxHistory().copy())
return test_history, traceback_info
Expand Down
2 changes: 1 addition & 1 deletion brownie/network/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def is_active(self):

def is_child(self):
'''Returns True if the Rpc client is active and was launched by Brownie.'''
if not is_active():
if not self.is_active():
return False
return self._rpc.parent() == psutil.Process()

Expand Down

0 comments on commit 06b71b2

Please sign in to comment.