Skip to content

Commit

Permalink
Reenabled key exchange connection limiter test for macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidv1992 authored and rnijveld committed Dec 13, 2024
1 parent 72c7cc1 commit 32235c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- rust: "stable"
os: macos-latest
features: "--features run_tokio_rustls_tests"
target: "x86_64-apple-darwin"
target: "aarch64-apple-darwin"
- rust: "stable"
os: ubuntu-latest
features: "--all-features"
Expand All @@ -58,7 +58,7 @@ jobs:
- rust: "stable"
os: macos-latest
features: "--all-features"
target: "x86_64-apple-darwin"
target: "aarch64-apple-darwin"
- rust: "stable"
os: ubuntu-latest
features: "--no-default-features --features rustls21"
Expand Down
5 changes: 2 additions & 3 deletions ntpd/src/daemon/keyexchange.rs
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,6 @@ mod tests {
assert_eq!(len, 16);
}

#[cfg(not(target_os = "macos"))]
#[tokio::test]
async fn key_exchange_connection_limiter() {
let port = alloc_port();
Expand Down Expand Up @@ -832,7 +831,7 @@ mod tests {
let ca = include_bytes!("../../test-keys/testca.pem");

assert!(tokio::time::timeout(
std::time::Duration::from_millis(200),
std::time::Duration::from_millis(750),
key_exchange_client(
"localhost".to_string(),
port,
Expand All @@ -849,7 +848,7 @@ mod tests {
drop(blocker);

let result = tokio::time::timeout(
std::time::Duration::from_millis(200),
std::time::Duration::from_millis(750), // large timeout is needed to ensure test succeeds consistently on MacOS M2 E-cores
key_exchange_client(
"localhost".to_string(),
port,
Expand Down

0 comments on commit 32235c7

Please sign in to comment.