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 058a3ed commit 14ed0e4Copy full SHA for 14ed0e4
src/block_range_scanner.rs
@@ -1635,8 +1635,8 @@ mod tests {
1635
service.send_to_subscriber(Message::Error(ScannerError::BlockNotFound(4.into()))).await;
1636
1637
match rx.recv().await.expect("subscriber should stay open") {
1638
- Message::Error(ScannerError::BlockNotFound(attempts)) => {
1639
- assert_eq!(attempts, 4.into());
+ Message::Error(err) => {
+ assert!(matches!(err, ScannerError::BlockNotFound(BlockNumberOrTag::Number(4))));
1640
}
1641
other => panic!("unexpected message: {other:?}"),
1642
0 commit comments