mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
nixos/geth: fix failing test
Run authrpc on different ports for main and testnet to avoid collision.
This commit is contained in:
parent
5d74e13d2c
commit
301ec4c067
@ -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$\' '
|
||||
)
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user