File tree Expand file tree Collapse file tree 4 files changed +6
-51
lines changed
Expand file tree Collapse file tree 4 files changed +6
-51
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,8 @@ Integration tests require external services and are more complex to run than uni
4646
4747** Running Integration Tests:**
4848``` bash
49- # Build graph-node and test binaries
50- cargo build --bin graph-node --test integration_tests
51-
5249# Run all integration tests
53- cargo test -p graph-tests --test integration_tests -- --nocapture
50+ cargo test --package graph-tests --test integration_tests -- --nocapture
5451```
5552
5653** Important Notes:**
Original file line number Diff line number Diff line change 110110 enable = true ;
111111 dataDir = "./.data/unit/ipfs" ;
112112 port = 5001 ;
113- gatewayPort = 8080 ;
113+ gateway = 8080 ;
114114 } ;
115115 } ;
116116
142142 enable = true ;
143143 dataDir = "./.data/integration/ipfs" ;
144144 port = 3001 ;
145- gatewayPort = 3002 ;
145+ gateway = 3002 ;
146146 } ;
147147
148148 services . anvil . "anvil-integration" = {
149149 enable = true ;
150150 package = pkgsWithOverlays . foundry-bin ;
151151 port = 3021 ;
152- host = "127.0.0.1" ;
153- gasLimit = "100000000000" ;
154- baseFee = 1 ;
155- blockTime = 2 ;
156152 timestamp = 1743944919 ;
157- mnemonic = "test test test test test test test test test test test junk" ;
158- accounts = 10 ;
159153 } ;
160154 } ;
161155 } ;
Original file line number Diff line number Diff line change 1212 description = "Port for Anvil RPC server" ;
1313 } ;
1414
15- host = lib . mkOption {
16- type = lib . types . str ;
17- default = "127.0.0.1" ;
18- description = "Host address to bind to" ;
19- } ;
20-
21- gasLimit = lib . mkOption {
22- type = lib . types . str ;
23- default = "100000000000" ;
24- description = "Gas limit for blocks" ;
25- } ;
26-
27- baseFee = lib . mkOption {
28- type = lib . types . int ;
29- default = 1 ;
30- description = "Base fee per gas" ;
31- } ;
32-
33- blockTime = lib . mkOption {
34- type = lib . types . int ;
35- default = 2 ;
36- description = "Block time in seconds" ;
37- } ;
38-
3915 timestamp = lib . mkOption {
4016 type = lib . types . int ;
4117 default = 1743944919 ;
4218 description = "Timestamp for the genesis block" ;
4319 } ;
44-
45- mnemonic = lib . mkOption {
46- type = lib . types . str ;
47- default = "test test test test test test test test test test test junk" ;
48- description = "Mnemonic phrase for deterministic accounts" ;
49- } ;
50-
51- accounts = lib . mkOption {
52- type = lib . types . int ;
53- default = 10 ;
54- description = "Number of dev accounts to generate" ;
55- } ;
5620 } ;
5721
5822 config = {
5923 outputs . settings . processes . ${ name } = {
60- command = "${ lib . getExe' config . package "anvil" } --host ${ config . host } --port ${ toString config . port } --gas- limit ${ config . gasLimit } --base-fee ${ toString config . baseFee } --block-time ${ toString config . blockTime } --timestamp ${ toString config . timestamp } --mnemonic \" ${ config . mnemonic } \" --accounts ${ toString config . accounts } " ;
24+ command = "${ lib . getExe' config . package "anvil" } --disable-block-gas-limit --disable-code-size- limit --base-fee 1 --block-time 2 --timestamp ${ toString config . timestamp } --port ${ toString config . port } " ;
6125
6226 availability = {
6327 restart = "always" ;
Original file line number Diff line number Diff line change 99 description = "Port for IPFS API" ;
1010 } ;
1111
12- gatewayPort = lib . mkOption {
12+ gateway = lib . mkOption {
1313 type = lib . types . port ;
1414 default = 8080 ;
1515 description = "Port for IPFS gateway" ;
2424 mkdir -p "${ config . dataDir } "
2525 ${ lib . getExe config . package } init
2626 ${ lib . getExe config . package } config Addresses.API /ip4/127.0.0.1/tcp/${ toString config . port }
27- ${ lib . getExe config . package } config Addresses.Gateway /ip4/127.0.0.1/tcp/${ toString config . gatewayPort }
27+ ${ lib . getExe config . package } config Addresses.Gateway /ip4/127.0.0.1/tcp/${ toString config . gateway }
2828 fi
2929 ${ lib . getExe config . package } daemon --offline
3030 '' ;
You can’t perform that action at this time.
0 commit comments