@@ -0,0 +1,852 @@
+import gevent%0A%0Afrom raiden.network.rpc.client import geth_discover_next_available_nonce%0Afrom raiden.tests.utils.factories import make_address%0A%0A%0Adef test_geth_discover_next_available_nonce(deploy_client, skip_if_parity):%0A    %22%22%22 Test that geth_discover_next_available nonce works correctly%0A%0A    Reproduced the problem seen here:%0A    https://github.com/raiden-network/raiden/pull/3683#issue-264551799%0A    %22%22%22%0A%0A    greenlets = set()%0A    for _ in range(100):%0A        greenlets.add(gevent.spawn(%0A            deploy_client.send_transaction,%0A            make_address(),  # to%0A            50000,  # startgas%0A        ))%0A    gevent.sleep(.5)%0A%0A    nonce = geth_discover_next_available_nonce(%0A        web3=deploy_client.web3,%0A        address=deploy_client.address,%0A    )%0A    assert nonce %3E 0%0A    assert nonce %3C 100%0A%0A    gevent.joinall(greenlets, raise_error=True)%0A

Add test for geth_discover_next_available_nonce