From 28f6d7f1567e9e6cc544bfcf97b99cde6fe01c9e Mon Sep 17 00:00:00 2001 From: "joel@joellee.org" Date: Fri, 12 Jan 2024 23:28:27 +0800 Subject: [PATCH] feat: sync error messages --- internal/api/mfa_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/mfa_test.go b/internal/api/mfa_test.go index 738d20c247..c1b107aaf8 100644 --- a/internal/api/mfa_test.go +++ b/internal/api/mfa_test.go @@ -170,7 +170,7 @@ func (ts *MFATestSuite) TestDuplicateEnrollsReturnExpectedMessage() { require.NoError(ts.T(), err) // Convert the response body to a string and check for the expected error message - expectedErrorMessage := fmt.Sprintf("a factor with the friendly name %q for this user already exists", friendlyName) + expectedErrorMessage := fmt.Sprintf("a factor with the friendly name %q for this user likely already exists", friendlyName) require.Contains(ts.T(), errorResponse.Message, expectedErrorMessage) }