postgres: return unknown records instead of skipping them (#3876)

This commit is contained in:
Caleb Doxsey 2023-01-09 15:10:52 -07:00
parent 1761a39fb2
commit a549e5d8e7
2 changed files with 41 additions and 41 deletions

View file

@ -173,10 +173,11 @@ func TestBackend(t *testing.T) {
_, err = backend.Get(ctx, "unknown", "1")
assert.ErrorIs(t, err, storage.ErrNotFound)
_, _, stream, err := backend.SyncLatest(ctx, "unknown-test", nil)
_, _, stream, err := backend.SyncLatest(ctx, "unknown", nil)
if assert.NoError(t, err) {
_, err := storage.RecordStreamToList(stream)
records, err := storage.RecordStreamToList(stream)
assert.NoError(t, err)
assert.Len(t, records, 1)
stream.Close()
}
})