upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/common
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-12-11 11:57:36 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-11 11:57:36 +0000
commit4941490233a728bc7c64fa80a53d15f772a1219f (patch)
tree7fc1bbf6114deb29b5a736b467abf785ea915f02 /tests/common
parent6cd7535f2d5f65477ef11b17a4661745ec3a2881 (diff)
sync: add sync_base_backoff_secs config for better testing
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common/relay.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/common/relay.rs b/tests/common/relay.rs
index b11dde3..0b3926e 100644
--- a/tests/common/relay.rs
+++ b/tests/common/relay.rs
@@ -97,6 +97,7 @@ impl TestRelay {
97 .env("NGIT_SYNC_STARTUP_DELAY_SECS", "0") // No startup delay for faster tests 97 .env("NGIT_SYNC_STARTUP_DELAY_SECS", "0") // No startup delay for faster tests
98 .env("NGIT_SYNC_STARTUP_JITTER_MS", "0") // No jitter for tests 98 .env("NGIT_SYNC_STARTUP_JITTER_MS", "0") // No jitter for tests
99 .env("NGIT_SYNC_DISCONNECT_CHECK_INTERVAL_SECS", "1") // Fast reconnect attempts for tests 99 .env("NGIT_SYNC_DISCONNECT_CHECK_INTERVAL_SECS", "1") // Fast reconnect attempts for tests
100 .env("NGIT_SYNC_BASE_BACKOFF_SECS", "1") // Fast backoff for tests (1s instead of 5s default)
100 .env("RUST_LOG", "info") // Enable INFO logging for diagnostics 101 .env("RUST_LOG", "info") // Enable INFO logging for diagnostics
101 .stdout(Stdio::null()) // Disable stderr for cleaner test output 102 .stdout(Stdio::null()) // Disable stderr for cleaner test output
102 // .stdout(Stdio::inherit()) // Show stdout for diagnostics 103 // .stdout(Stdio::inherit()) // Show stdout for diagnostics