pomerium/pkg/storage/storagetest
Kenneth Jenkins a771b82a72
storage/inmemory: fix Patch() error handling (#4838)
The Patch() method was intended to skip any records that do not
currently exist. However, currently inmemory.Backend.Patch() will return
ErrNotFound if the last record in the records slice is not found (it
will ignore any other previous records that are not found).

Update the error handling logic here to be consistent with the postgres
backend, and add a unit test to exercise this case.
2023-12-07 12:21:10 -08:00
..
storagetest.go storage/inmemory: fix Patch() error handling (#4838) 2023-12-07 12:21:10 -08:00