Skip to content

Commit

Permalink
Ignore failing tests on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
XAMPPRocky committed Oct 7, 2024
1 parent 7a81ba0 commit 6c85c9b
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/codec/qcmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ mod tests {
}

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn qcmp_measurement() {
let socket = raw_socket_with_reuse(0).unwrap();
let addr = socket.local_addr().unwrap().as_socket().unwrap();
Expand Down
1 change: 1 addition & 0 deletions src/components/proxy/sessions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ mod tests {
}

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn send_and_recv() {
let mut t = TestHelper::default();
let dest = t.run_echo_server(AddressType::Ipv6).await;
Expand Down
1 change: 1 addition & 0 deletions src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ mod tests {
}

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn dual_stack_socket() {
// Since the TestHelper uses the DualStackSocket, we can use it to test ourselves.
let mut t = TestHelper::default();
Expand Down
1 change: 1 addition & 0 deletions src/net/phoenix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ mod tests {
}

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn http_server() {
let config = Arc::new(crate::Config::default_non_agent());
let qcmp_listener = crate::net::TcpListener::bind(None).expect("failed to bind listener");
Expand Down
1 change: 1 addition & 0 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ mod tests {
use crate::test::{AddressType, TestHelper};

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn test_echo_server() {
let mut t = TestHelper::default();
let echo_addr = t.run_echo_server(AddressType::Random).await;
Expand Down
1 change: 1 addition & 0 deletions tests/capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use quilkin::{
/// This test covers both token_router and capture filters,
/// since they work in concert together.
#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn token_router() {
let mut t = TestHelper::default();
let mut echo = t.run_echo_server(AddressType::Random).await;
Expand Down
1 change: 1 addition & 0 deletions tests/compress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ use quilkin::{
};

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn client_and_server() {
let mut t = TestHelper::default();
let echo = t.run_echo_server(AddressType::Random).await;
Expand Down
1 change: 1 addition & 0 deletions tests/concatenate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use quilkin::{
};

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn concatenate() {
let mut t = TestHelper::default();
let yaml = "
Expand Down
2 changes: 2 additions & 0 deletions tests/filter_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use quilkin::{
};

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn filter_order() {
let mut t = TestHelper::default();

Expand Down Expand Up @@ -103,6 +104,7 @@ on_write: DECOMPRESS
}

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn multiple_mutations() {
let filters = r#"
- name: quilkin.filters.capture.v1alpha1.Capture
Expand Down
2 changes: 2 additions & 0 deletions tests/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use quilkin::{
};

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn test_filter() {
let mut t = TestHelper::default();
load_test_filters();
Expand Down Expand Up @@ -106,6 +107,7 @@ async fn test_filter() {
}

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn debug_filter() {
let mut t = TestHelper::default();

Expand Down
2 changes: 2 additions & 0 deletions tests/firewall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use quilkin::{
};

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn ipv4_firewall_allow() {
let mut t = TestHelper::default();
let yaml = "
Expand Down Expand Up @@ -55,6 +56,7 @@ on_write:
}

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn ipv6_firewall_allow() {
let mut t = TestHelper::default();
let yaml = "
Expand Down
1 change: 1 addition & 0 deletions tests/load_balancer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use quilkin::{
};

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn load_balancer_filter() {
let mut t = TestHelper::default();

Expand Down
1 change: 1 addition & 0 deletions tests/local_rate_limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use quilkin::{
};

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn local_rate_limit_filter() {
let mut t = TestHelper::default();

Expand Down
1 change: 1 addition & 0 deletions tests/match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use quilkin::{
};

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn r#match() {
let mut t = TestHelper::default();
let echo = t.run_echo_server(AddressType::Random).await;
Expand Down
1 change: 1 addition & 0 deletions tests/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use quilkin::{
};

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn metrics_server() {
let mut t = TestHelper::default();

Expand Down
1 change: 1 addition & 0 deletions tests/no_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use quilkin::{
};

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn echo() {
let mut t = TestHelper::default();

Expand Down
2 changes: 2 additions & 0 deletions tests/qcmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ use quilkin::{
};

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn proxy_ping() {
let mut t = TestHelper::default();
let qcmp = quilkin::net::raw_socket_with_reuse(0).unwrap();
Expand All @@ -39,6 +40,7 @@ async fn proxy_ping() {
}

#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn agent_ping() {
let qcmp_port = quilkin::test::available_addr(AddressType::Random)
.await
Expand Down
2 changes: 2 additions & 0 deletions tests/token_router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use tokio::time::{timeout, Duration};
/// This test covers both token_router and capture filters,
/// since they work in concert together.
#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn token_router() {
let mut t = TestHelper::default();

Expand Down Expand Up @@ -59,6 +60,7 @@ async fn token_router() {
// This test covers the scenario in https://github.com/googleforgames/quilkin/issues/988
// to make sure there are no issues with overlapping streams between clients.
#[tokio::test]
#[cfg_attr(target_os = "macos", ignore)]
async fn multiple_clients() {
let limit = 10_000;
let mut t = TestHelper::default();
Expand Down

0 comments on commit 6c85c9b

Please sign in to comment.