Skip to content

Commit

Permalink
Mayyybe
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes committed Sep 2, 2020
1 parent bb9ccbb commit 935134e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 deletions tests/integration/go_ethereum/test_goethereum_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ class TestGoEthereumTest(GoEthereumTest):

class TestGoEthereumAdminModuleTest(GoEthereumAdminModuleTest):
@pytest.mark.xfail(reason="running geth with the --nodiscover flag doesn't allow peer addition")
def test_admin_peers(web3):
def test_admin_peers(self, web3):
super().test_admin_peers(web3)

@pytest.mark.xfail(reason='Only one RPC endpoint is allowed to be active at any time')
def test_admin_start_stop_rpc(web3):
def test_admin_start_stop_rpc(self, web3: "Web3") -> None:
# This test causes all tests after it to fail if it's allowed to run
pytest.xfail(reason='Only one RPC endpoint is allowed to be active at any time')
super().test_admin_start_stop_rpc(web3)


class TestGoEthereumEthModuleTest(GoEthereumEthModuleTest):
pass

Expand Down
8 changes: 4 additions & 4 deletions tests/integration/go_ethereum/test_goethereum_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ class TestGoEthereumTest(GoEthereumTest):

class TestGoEthereumAdminModuleTest(GoEthereumAdminModuleTest):
@pytest.mark.xfail(reason="running geth with the --nodiscover flag doesn't allow peer addition")
def test_admin_peers(web3):
def test_admin_peers(self, web3):
super().test_admin_peers(web3)

@pytest.mark.xfail(reason='Only one WebSocket endpoint is allowed to be active at any time')
def test_admin_start_stop_ws(web3):
def test_admin_start_stop_ws(self, web3):
# This test causes all tests after it to fail if it's allowed to run
pytest.xfail(reason='Only one WebSocket endpoint is allowed to be active at any time')
super().test_admin_start_stop_ws(web3)


class TestGoEthereumEthModuleTest(GoEthereumEthModuleTest):
pass

Expand Down
3 changes: 0 additions & 3 deletions web3/_utils/module_testing/go_ethereum_admin_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ def test_admin_start_stop_rpc(self, web3: "Web3") -> None:
stop = web3.geth.admin.stopRPC()
assert stop is True

start = web3.geth.admin.startRPC()
assert start is True

def test_admin_start_stop_ws(self, web3: "Web3") -> None:
stop = web3.geth.admin.stop_ws()
assert stop is True
Expand Down

0 comments on commit 935134e

Please sign in to comment.