haubur commented on code in PR #3953:
URL: https://github.com/apache/iggy/pull/3953#discussion_r3854474910
##########
core/sdk/src/clients/producer_dispatcher.rs:
##########
@@ -432,4 +422,52 @@ mod tests {
assert_eq!(sharding_called.load(Ordering::SeqCst), 1);
assert_eq!(error_called.load(Ordering::SeqCst), 1);
}
+
+ #[tokio::test]
+ async fn test_shutdown_reports_errors_from_final_flush() {
+ let mut mock = MockProducerCoreBackend::new();
+ // mock a failed send to be caught by the error callback
+ mock.expect_send_internal()
+ .times(1)
Review Comment:
This also applies to `test_custom_sharding_and_error_callback` then. Changed
accordingly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]