Skip to content

Commit 51d0d61

Browse files
committed
fixed test
1 parent ce0c3f4 commit 51d0d61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/credentials/oauth2_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func TestOauth2TokenExchange(t *testing.T) {
145145
Status: http.StatusForbidden,
146146
ExpectedToken: "",
147147
ExpectedError: errCouldNotExchangeToken,
148-
ExpectedErrorPart: "403 Forbidden, description: \"something went bad\", error_uri: my_error_uri",
148+
ExpectedErrorPart: "403 Forbidden, description: \\\"something went bad\\\", error_uri: my_error_uri",
149149
},
150150
{
151151
Response: `{"access_token":"test_token","token_type":"","expires_in":42,"some_other_field":"x"}`,
@@ -170,7 +170,7 @@ func TestOauth2TokenExchange(t *testing.T) {
170170
Status: http.StatusOK,
171171
ExpectedToken: "",
172172
ExpectedError: errDifferentScope,
173-
ExpectedErrorPart: "Expected \"test_scope1 test_scope2\", but got \"s\"",
173+
ExpectedErrorPart: "Expected \\\"test_scope1 test_scope2\\\", but got \\\"s\\\"",
174174
},
175175
{
176176
Response: `{"access_token":"","token_type":"Bearer","expires_in":42}`,

0 commit comments

Comments
 (0)