Unverified Commit e7583779 authored by Jörg Thalheim's avatar Jörg Thalheim Committed by GitHub
Browse files

Merge pull request #230926 from bachp/geth-test-zhf

nixos/geth: fix failing test
parents 33e31386 301ec4c0
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -19,6 +19,10 @@ import ./make-test-python.nix ({ pkgs, ... }: {
        enable = true;
        port = 18545;
      };
      authrpc = {
        enable = true;
        port = 18551;
      };
    };
  };

@@ -31,11 +35,11 @@ import ./make-test-python.nix ({ pkgs, ... }: {
    machine.wait_for_open_port(18545)

    machine.succeed(
        'geth attach --exec eth.blockNumber http://localhost:8545 | grep \'^0$\' '
        'geth attach --exec "eth.blockNumber" http://localhost:8545 | grep \'^0$\' '
    )

    machine.succeed(
        'geth attach --exec "eth.chainId()" http://localhost:18545 | grep \'"0x5"\' '
        'geth attach --exec "eth.blockNumber" http://localhost:18545 | grep \'^0$\' '
    )
  '';
})