Skip to content

Commit f2baf93

Browse files
Disabled AMQP connection tests on OSX (#2930)
Fixes #2887 --------- Co-authored-by: Copilot <[email protected]>
1 parent cb4d97a commit f2baf93

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sdk/core/azure_core_amqp/src/connection.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ mod tests {
264264
);
265265
}
266266

267+
// On macOS, there is a periodic issue where loopback TCP connections fail.
268+
// Disable these tests on macOS.
269+
#[cfg(not(target_os = "macos"))]
267270
#[tokio::test]
268271
async fn amqp_connection_open() {
269272
let address = std::env::var("TEST_BROKER_ADDRESS");
@@ -294,6 +297,7 @@ mod tests {
294297
}
295298
}
296299

300+
#[cfg(not(target_os = "macos"))]
297301
#[tokio::test]
298302
async fn amqp_connection_close() {
299303
let address = std::env::var("TEST_BROKER_ADDRESS");
@@ -310,6 +314,7 @@ mod tests {
310314
}
311315
}
312316

317+
#[cfg(not(target_os = "macos"))]
313318
#[tokio::test]
314319
async fn amqp_connection_close_with_error() {
315320
tracing_subscriber::fmt::init();

0 commit comments

Comments
 (0)