mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-12 16:47:41 +02:00
postgres: return unknown records instead of skipping them (#3876)
This commit is contained in:
parent
9677e18bbd
commit
92b50683ff
2 changed files with 41 additions and 41 deletions
|
@ -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()
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue