diff options
Diffstat (limited to 'grasp-audit/src')
| -rw-r--r-- | grasp-audit/src/specs/nip01_smoke.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/grasp-audit/src/specs/nip01_smoke.rs b/grasp-audit/src/specs/nip01_smoke.rs index 569997b..20f80ea 100644 --- a/grasp-audit/src/specs/nip01_smoke.rs +++ b/grasp-audit/src/specs/nip01_smoke.rs | |||
| @@ -295,8 +295,12 @@ mod tests { | |||
| 295 | #[tokio::test] | 295 | #[tokio::test] |
| 296 | #[ignore] // Ignore by default since it needs a running relay | 296 | #[ignore] // Ignore by default since it needs a running relay |
| 297 | async fn test_smoke_tests_against_relay() { | 297 | async fn test_smoke_tests_against_relay() { |
| 298 | // Use RELAY_URL env var if set, otherwise default to localhost:7000 | ||
| 299 | let relay_url = std::env::var("RELAY_URL") | ||
| 300 | .unwrap_or_else(|_| "ws://localhost:7000".to_string()); | ||
| 301 | |||
| 298 | let config = AuditConfig::ci(); | 302 | let config = AuditConfig::ci(); |
| 299 | let client = AuditClient::new("ws://localhost:7000", config) | 303 | let client = AuditClient::new(&relay_url, config) |
| 300 | .await | 304 | .await |
| 301 | .expect("Failed to connect to relay"); | 305 | .expect("Failed to connect to relay"); |
| 302 | 306 | ||