Skip to content

Commit 250125e

Browse files
committed
Fix clippy and reduce CI runtime for relay-flaky tests
1 parent 1073a40 commit 250125e

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/lib.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ mod tests {
235235
tokio::time::sleep(Duration::from_secs(3)).await;
236236
}
237237
}
238-
let group = group_opt.expect(&format!(
239-
"Creating group failed after retries: {last_create_group_error}"
240-
));
238+
let group = group_opt.unwrap_or_else(|| {
239+
panic!("Creating group failed after retries: {last_create_group_error}")
240+
});
241241

242242
assert_eq!(group.name, Some("example".to_string()));
243243

@@ -617,8 +617,7 @@ mod tests {
617617
download_retries -= 1;
618618
if download_retries == 0 {
619619
panic!(
620-
"File download did not converge after retries. last status: {}",
621-
resp_status
620+
"File download did not converge after retries. last status: {resp_status}"
622621
);
623622
}
624623
tokio::time::sleep(Duration::from_secs(5)).await;

0 commit comments

Comments
 (0)