From 301ec4c0679e2e4e32bb12a8065a194d4f8c6e4c Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Tue, 9 May 2023 20:35:28 +0200 Subject: [PATCH] nixos/geth: fix failing test Run authrpc on different ports for main and testnet to avoid collision. --- nixos/tests/geth.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nixos/tests/geth.nix b/nixos/tests/geth.nix index 11ad1ed2ea66..dc6490db57c9 100644 --- a/nixos/tests/geth.nix +++ b/nixos/tests/geth.nix @@ -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$\' ' ) ''; })