Skip to content

Commit f0bf690

Browse files
committed
Improve CI debugability
The call count assertion is binary; the failure explanation could be varied
1 parent 2b55a22 commit f0bf690

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

download/tests/read-proxy-env.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,12 @@ fn socks_proxy_request() {
7272

7373
if let Err(e) = res {
7474
let s = e.source().unwrap();
75+
assert!(
76+
s.to_string().contains("socks connect error"),
77+
"Expected socks connect error, got: {}",
78+
s.to_string()
79+
);
7580
assert_eq!(CALL_COUNT.load(Ordering::SeqCst), 1);
76-
assert!(s.to_string().contains("socks connect error"));
7781
} else {
7882
panic!("Socks proxy was ignored")
7983
}

0 commit comments

Comments
 (0)