lol

nixos/geth: fix failing test

Run authrpc on different ports for main and testnet to avoid collision.

+6 -2
+6 -2
nixos/tests/geth.nix
··· 19 19 enable = true; 20 20 port = 18545; 21 21 }; 22 + authrpc = { 23 + enable = true; 24 + port = 18551; 25 + }; 22 26 }; 23 27 }; 24 28 ··· 31 35 machine.wait_for_open_port(18545) 32 36 33 37 machine.succeed( 34 - 'geth attach --exec eth.blockNumber http://localhost:8545 | grep \'^0$\' ' 38 + 'geth attach --exec "eth.blockNumber" http://localhost:8545 | grep \'^0$\' ' 35 39 ) 36 40 37 41 machine.succeed( 38 - 'geth attach --exec "eth.chainId()" http://localhost:18545 | grep \'"0x5"\' ' 42 + 'geth attach --exec "eth.blockNumber" http://localhost:18545 | grep \'^0$\' ' 39 43 ) 40 44 ''; 41 45 })