You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(registry): reconcile stale WAL torn-tail test with current contract
tests/pkg/registry/server held a stale mirror of the rendezvous WAL test
suite: TestReplayErrorsOnTruncatedData expected Replay to hard-error on a
truncated record. The rendezvous WAL deliberately tolerates a torn tail (a
crash between the length-prefix and payload writes) — documented in
wal.Replay and covered by rendezvous wal.TestWALReplayTornTail — replaying
complete entries and dropping the torn tail.
Replace it with TestReplayToleratesTornTail asserting the real contract:
a lone torn record replays nothing; a complete entry survives a trailing
torn tail. No error in either case.
Co-authored-by: Teodor Calin <teodor@vulturelabs.io>
0 commit comments