From cb466fbc02b83c5788def5fef73f93573f5c1f70 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 5 Nov 2025 07:09:41 +0000 Subject: test: improve test script with unique names and random ports - Remove python3 dependency for port selection - Use RANDOM for port selection in range 20000-30000 - Use unique container names based on PID: grasp-audit-run-294183 - Use unique temp directories: grasp-audit-run-XXXXXXXXXX - Ensures parallel test runs don't conflict --- grasp-audit/src/specs/nip01_smoke.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grasp-audit/src') diff --git a/grasp-audit/src/specs/nip01_smoke.rs b/grasp-audit/src/specs/nip01_smoke.rs index 20f80ea..5fddf5d 100644 --- a/grasp-audit/src/specs/nip01_smoke.rs +++ b/grasp-audit/src/specs/nip01_smoke.rs @@ -295,9 +295,9 @@ mod tests { #[tokio::test] #[ignore] // Ignore by default since it needs a running relay async fn test_smoke_tests_against_relay() { - // Use RELAY_URL env var if set, otherwise default to localhost:7000 + // RELAY_URL env var must be set - no default fallback let relay_url = std::env::var("RELAY_URL") - .unwrap_or_else(|_| "ws://localhost:7000".to_string()); + .expect("RELAY_URL environment variable must be set for integration tests"); let config = AuditConfig::ci(); let client = AuditClient::new(&relay_url, config) -- cgit v1.2.3