summary refs log tree commit diff
path: root/nixos/tests/geth.nix
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2023-05-09 20:35:28 +0200
committerPascal Bach <pascal.bach@nextrem.ch>2023-05-09 20:35:28 +0200
commit301ec4c0679e2e4e32bb12a8065a194d4f8c6e4c (patch)
tree08d65ae82eec5ab8e1b72b0ad1b33caaf97babad /nixos/tests/geth.nix
parent5d74e13d2c1b0c92e791c8f2f07f58d854a4bd31 (diff)
downloadnixpkgs-301ec4c0679e2e4e32bb12a8065a194d4f8c6e4c.tar
nixpkgs-301ec4c0679e2e4e32bb12a8065a194d4f8c6e4c.tar.gz
nixpkgs-301ec4c0679e2e4e32bb12a8065a194d4f8c6e4c.tar.bz2
nixpkgs-301ec4c0679e2e4e32bb12a8065a194d4f8c6e4c.tar.lz
nixpkgs-301ec4c0679e2e4e32bb12a8065a194d4f8c6e4c.tar.xz
nixpkgs-301ec4c0679e2e4e32bb12a8065a194d4f8c6e4c.tar.zst
nixpkgs-301ec4c0679e2e4e32bb12a8065a194d4f8c6e4c.zip
nixos/geth: fix failing test
Run authrpc on different ports for main and testnet to avoid collision.
Diffstat (limited to 'nixos/tests/geth.nix')
-rw-r--r--nixos/tests/geth.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/nixos/tests/geth.nix b/nixos/tests/geth.nix
index 11ad1ed2ea6..dc6490db57c 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$\' '
     )
   '';
 })