File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 env :
3434 RUST_MIN_STACK : 8388608
3535 SAVE_VEILID_LOCAL_TEST_MODE : " 1"
36- SAVE_VEILID_TEST_NETWORK_KEY : save-rust-ci-${{ github.run_id }}-${{ github.run_attempt }}
3736 # Retries configured in .config/nextest.toml (nextest default path)
3837 # --no-fail-fast: run all tests in this PR subset even when some fail.
3938 # Exclude long P2P network convergence tests from PR CI; run them in dedicated/nightly workflows.
Original file line number Diff line number Diff line change @@ -97,9 +97,12 @@ mod tests {
9797 return ;
9898 }
9999
100- let network_key = env:: var ( "SAVE_VEILID_TEST_NETWORK_KEY" )
101- . unwrap_or_else ( |_| "save-rust-local-test-network" . to_string ( ) ) ;
102- config. network . network_key_password = Some ( network_key) ;
100+ if let Ok ( network_key) = env:: var ( "SAVE_VEILID_TEST_NETWORK_KEY" ) {
101+ let key = network_key. trim ( ) ;
102+ if !key. is_empty ( ) {
103+ config. network . network_key_password = Some ( key. to_string ( ) ) ;
104+ }
105+ }
103106
104107 // Keep test nodes deterministic and less noisy in CI.
105108 config. network . upnp = false ;
You can’t perform that action at this time.
0 commit comments