From 28e22d7dd2e7523c836ed6cf4390df50cbfc7c9f Mon Sep 17 00:00:00 2001 From: Joshua Casey Date: Mon, 2 Dec 2024 11:08:30 -0600 Subject: [PATCH] Update error text assertion due to change in ory/fosite - https://github.com/ory/fosite/commit/db74aa7abd9f22deb0d6779a6870c1a65445f298 --- .../fositestorage/authorizationcode/authorizationcode_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/fositestorage/authorizationcode/authorizationcode_test.go b/internal/fositestorage/authorizationcode/authorizationcode_test.go index 3a0e5d00d..73a3b885d 100644 --- a/internal/fositestorage/authorizationcode/authorizationcode_test.go +++ b/internal/fositestorage/authorizationcode/authorizationcode_test.go @@ -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) {