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

This commit is contained in:
Caleb Doxsey 2023-01-09 15:10:52 -07:00 committed by GitHub
parent 9677e18bbd
commit 92b50683ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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()
}
})