Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion clients/go/e2e/resilientwatch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,12 @@ func TestE2EWatchSetLoaderRebuildsFromTruthOnReconnect(t *testing.T) {
if err != nil {
break
}
if m, ok := ev.(*satdevents.ScriptMatched); ok && satdevents.DisplayHex(m.Txid) == txid {
// Wait for the CONFIRMED match, as primeRW does: only it carries
// a cursor. Stopping at the mempool match cut the transport, most
// runs, before the confirmed one reached the pump. The reconnect
// then had no resume cursor, sent no SetCursor, and the wait for
// CursorAccepted below saw only heartbeats until it timed out.
if m, ok := ev.(*satdevents.ScriptMatched); ok && m.Confirmed && satdevents.DisplayHex(m.Txid) == txid {
registered = true
break
}
Expand Down
Loading