diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-05 10:19:56 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-05 10:19:56 +0000 |
| commit | 86077d24e7cc8ff9d474a5947f0151d005f9f747 (patch) | |
| tree | 47b7cd4c52e8f784e1b8f13ab6f88a1c4eef31e4 /grasp-audit/src/specs | |
| parent | 53b926427fa6b65abcf680dd1c19eebfd3e85f65 (diff) | |
fix: hardcoded port
Diffstat (limited to 'grasp-audit/src/specs')
| -rw-r--r-- | grasp-audit/src/specs/grasp01_nostr_relay.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/grasp-audit/src/specs/grasp01_nostr_relay.rs b/grasp-audit/src/specs/grasp01_nostr_relay.rs index a18927c..ca84a4b 100644 --- a/grasp-audit/src/specs/grasp01_nostr_relay.rs +++ b/grasp-audit/src/specs/grasp01_nostr_relay.rs | |||
| @@ -653,8 +653,12 @@ mod tests { | |||
| 653 | #[tokio::test] | 653 | #[tokio::test] |
| 654 | #[ignore] // Requires running relay | 654 | #[ignore] // Requires running relay |
| 655 | async fn test_grasp01_nostr_relay_against_relay() { | 655 | async fn test_grasp01_nostr_relay_against_relay() { |
| 656 | // Read relay URL from environment variable, default to localhost:8081 | ||
| 657 | let relay_url = std::env::var("RELAY_URL") | ||
| 658 | .unwrap_or_else(|_| "ws://localhost:8081".to_string()); | ||
| 659 | |||
| 656 | let config = AuditConfig::ci(); | 660 | let config = AuditConfig::ci(); |
| 657 | let client = AuditClient::new("ws://localhost:18081", config) | 661 | let client = AuditClient::new(&relay_url, config) |
| 658 | .await | 662 | .await |
| 659 | .expect("Failed to connect to relay"); | 663 | .expect("Failed to connect to relay"); |
| 660 | 664 | ||