strip session-added comments
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
//! The relay claims outbox rows with the SQLite queue's own atomic claim and
|
||||
//! settles each row from the sink's verdict, with fakes at the sink boundary.
|
||||
|
||||
mod support;
|
||||
|
||||
use std::sync::{Arc, Mutex};
|
||||
@@ -20,9 +17,7 @@ use uuid::Uuid;
|
||||
#[derive(Default)]
|
||||
struct FakeSink {
|
||||
fail: bool,
|
||||
/// Fail this many calls, then succeed (a bus outage that ends).
|
||||
fail_first: std::sync::atomic::AtomicUsize,
|
||||
/// When set, `relay` signals `started` then takes this long.
|
||||
slow: Option<Duration>,
|
||||
started: Notify,
|
||||
seen: Mutex<Vec<Option<EventId>>>,
|
||||
@@ -133,8 +128,6 @@ async fn relay_marks_rows_done_only_after_publish_succeeds() {
|
||||
|
||||
#[tokio::test]
|
||||
async fn a_failing_bus_never_spends_the_rows_attempts_and_the_row_relays_on_recovery() {
|
||||
// Budget of 2 attempts, 3 consecutive bus failures: were failures counted
|
||||
// as attempts the row would be dead-lettered before the bus recovers.
|
||||
let (pool, publisher, queue) = outbox_with_attempts(2).await;
|
||||
publisher.publish(&event()).await.unwrap();
|
||||
let sink = Arc::new(FakeSink {
|
||||
|
||||
Reference in New Issue
Block a user