We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1073a40 commit 250125eCopy full SHA for 250125e
1 file changed
src/lib.rs
@@ -235,9 +235,9 @@ mod tests {
235
tokio::time::sleep(Duration::from_secs(3)).await;
236
}
237
238
- let group = group_opt.expect(&format!(
239
- "Creating group failed after retries: {last_create_group_error}"
240
- ));
+ let group = group_opt.unwrap_or_else(|| {
+ panic!("Creating group failed after retries: {last_create_group_error}")
+ });
241
242
assert_eq!(group.name, Some("example".to_string()));
243
@@ -617,8 +617,7 @@ mod tests {
617
download_retries -= 1;
618
if download_retries == 0 {
619
panic!(
620
- "File download did not converge after retries. last status: {}",
621
- resp_status
+ "File download did not converge after retries. last status: {resp_status}"
622
);
623
624
tokio::time::sleep(Duration::from_secs(5)).await;
0 commit comments