We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01919e1 commit 5cc22ccCopy full SHA for 5cc22cc
crates/factor-outbound-http/tests/factor_test.rs
@@ -89,11 +89,17 @@ async fn disallowed_private_ips_fails() -> anyhow::Result<()> {
89
Ok(_) => {}
90
// If private IPs are disallowed, we should get an error saying the destination is prohibited
91
Err(err) if !allow_private_ips => {
92
- assert!(matches!(err, ErrorCode::DestinationIpProhibited))
+ assert!(
93
+ matches!(err, ErrorCode::DestinationIpProhibited,),
94
+ "got {err:?}"
95
+ )
96
}
97
// Otherwise, we should get some non-DestinationIpProhibited error
98
Err(err) => {
- assert!(!matches!(err, ErrorCode::DestinationIpProhibited))
99
100
+ !matches!(err, ErrorCode::DestinationIpProhibited),
101
102
103
104
};
105
Ok(())
0 commit comments