send queue

This commit is contained in:
yves committed 2026-11-20 23:09:05 +01:00
1 parent a520ddb557
commit 10af480218
10 files changed
+701 -60

No files matched your search

+9
View File
@@ -181,6 +181,15 @@ kill "${PIDS[1]}"; wait "${PIDS[1]}" 2>/dev/null || true; PIDS[1]=""
expect "send with one server down" "(1 server(s))" meow bob send alice "still here"
expect "receive with one server down" "[bob] still here" meow alice 2>/dev/null
step "OFFLINE QUEUE"
kill "${PIDS[0]}"; wait "${PIDS[0]}" 2>/dev/null || true; PIDS[0]=""
expect "send with every server down" "queued for alice" meow bob send alice "written offline"
expect "queued" "alice message accepted by 0 server(s)" meow bob outbox
start_server "$PORT1" srv1
for _ in $(seq 50); do curl -fs "$S1/healthz" >/dev/null 2>&1 && break; sleep 0.1; done
expect "flushed when back (srv2 still down)" "accepted by 1 server(s)" meow bob outbox --flush
expect "received" "[bob] written offline" meow alice 2>/dev/null
step "HISTORY"
expect "history" "[alice] hi bob" meow bob history alice