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 committed Dec 5, 2024
1 parent 359bdf8 commit 456455b
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: ""
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"
steps:
- name: Checkout sources
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
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 @@ -780,7 +780,6 @@ mod tests {
assert_eq!(len, 16);
}

#[cfg(not(target_os = "macos"))]
#[tokio::test]
async fn key_exchange_connection_limiter() {
let provider = KeySetProvider::new(1);
Expand Down Expand Up @@ -820,7 +819,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(),
5435,
Expand All @@ -837,7 +836,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(),
5435,
Expand Down

0 comments on commit 456455b

Please sign in to comment.