diff options
Diffstat (limited to 'grasp-audit/src')
| -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 | ||