Skip to content

Commit

Permalink
Ignore outdated gateway directory tests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
octol committed Nov 1, 2024
1 parent e82990e commit af81b5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ mod test {
assert!(!gateways.is_empty());
}

// TODO: Remove ignore when magura hits mainnet
#[ignore]
#[tokio::test]
async fn lookup_gateways_in_nym_vpn_api() {
let config = Config::new_mainnet();
Expand Down
8 changes: 8 additions & 0 deletions nym-vpn-core/crates/nym-vpn-api-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,9 @@ mod tests {
mod gateway_directory {
use super::*;

// These tests are disabled until mainnet is updated

#[ignore]
#[tokio::test]
async fn get_gateways() {
let client = VpnApiClient::new(BASE_URL.parse().unwrap(), user_agent()).unwrap();
Expand All @@ -739,34 +742,39 @@ mod tests {
assert!(!response.into_inner().is_empty());
}

#[ignore]
#[tokio::test]
async fn get_entry_gateways() {
let client = VpnApiClient::new(BASE_URL.parse().unwrap(), user_agent()).unwrap();
let response = client.get_entry_gateways(None).await.unwrap();
assert!(!response.into_inner().is_empty());
}

#[ignore]
#[tokio::test]
async fn get_exit_gateways() {
let client = VpnApiClient::new(BASE_URL.parse().unwrap(), user_agent()).unwrap();
let response = client.get_entry_gateways(None).await.unwrap();
assert!(!response.into_inner().is_empty());
}

#[ignore]
#[tokio::test]
async fn get_gateway_countries() {
let client = VpnApiClient::new(BASE_URL.parse().unwrap(), user_agent()).unwrap();
let response = client.get_gateway_countries(None).await.unwrap();
assert!(!response.into_inner().is_empty());
}

#[ignore]
#[tokio::test]
async fn get_entry_gateway_countries() {
let client = VpnApiClient::new(BASE_URL.parse().unwrap(), user_agent()).unwrap();
let response = client.get_entry_gateway_countries(None).await.unwrap();
assert!(!response.into_inner().is_empty());
}

#[ignore]
#[tokio::test]
async fn get_exit_gateway_countries() {
let client = VpnApiClient::new(BASE_URL.parse().unwrap(), user_agent()).unwrap();
Expand Down

0 comments on commit af81b5a

Please sign in to comment.