Skip to content

Commit 5cc22cc

Browse files
committed
DO NOT MERGE - testing mac localhost test flake
Signed-off-by: Lann Martin <[email protected]>
1 parent 01919e1 commit 5cc22cc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

crates/factor-outbound-http/tests/factor_test.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,17 @@ async fn disallowed_private_ips_fails() -> anyhow::Result<()> {
8989
Ok(_) => {}
9090
// If private IPs are disallowed, we should get an error saying the destination is prohibited
9191
Err(err) if !allow_private_ips => {
92-
assert!(matches!(err, ErrorCode::DestinationIpProhibited))
92+
assert!(
93+
matches!(err, ErrorCode::DestinationIpProhibited,),
94+
"got {err:?}"
95+
)
9396
}
9497
// Otherwise, we should get some non-DestinationIpProhibited error
9598
Err(err) => {
96-
assert!(!matches!(err, ErrorCode::DestinationIpProhibited))
99+
assert!(
100+
!matches!(err, ErrorCode::DestinationIpProhibited),
101+
"got {err:?}"
102+
)
97103
}
98104
};
99105
Ok(())

0 commit comments

Comments
 (0)