Update error text assertion due to change in ory/fosite

- db74aa7abd
This commit is contained in:
Joshua Casey
2024-12-02 11:08:30 -06:00
parent 9cfbbb541a
commit 28e22d7dd2

View File

@@ -198,7 +198,7 @@ func TestInvalidateWhenConflictOnUpdateHappens(t *testing.T) {
err := storage.CreateAuthorizeCodeSession(ctx, "fancy-signature", request)
require.NoError(t, err)
err = storage.InvalidateAuthorizeCodeSession(ctx, "fancy-signature")
require.EqualError(t, err, `The request could not be completed due to concurrent access: failed to update authcode for signature fancy-signature at resource version : Operation cannot be fulfilled on secrets "some-secret-name": there was a conflict`)
require.EqualError(t, err, `error: failed to update authcode for signature fancy-signature at resource version : Operation cannot be fulfilled on secrets "some-secret-name": there was a conflict`)
}
func TestWrongVersion(t *testing.T) {