Skip to content

Commit

Permalink
refactor: minor test adjustment
Browse files Browse the repository at this point in the history
Signed-off-by: Darius Bakunas-Milanowski <[email protected]>
  • Loading branch information
Darius Bakunas-Milanowski committed Oct 29, 2024
1 parent c6d5d1b commit de35da8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connector/oauth/oauth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func TestHandleCallbackWithInsecureSkipEmailVerifiedWhenKeyFound(t *testing.T) {
conn := newConnector(t, testServer.URL)
conn.insecureSkipEmailVerified = true

req := newRequestWithAuthCode(t, testServer.URL, "TestHandleCallbackForNumericUserID")
req := newRequestWithAuthCode(t, testServer.URL, "TestHandleCallbackWithInsecureSkipEmailVerifiedWhenKeyFound")

identity, err := conn.HandleCallback(connector.Scopes{Groups: true}, req)
assert.Equal(t, err, nil)
Expand Down Expand Up @@ -244,7 +244,7 @@ func TestHandleCallbackWithInsecureSkipEmailVerifiedWhenKeyNotFound(t *testing.T
conn := newConnector(t, testServer.URL)
conn.insecureSkipEmailVerified = true

req := newRequestWithAuthCode(t, testServer.URL, "TestHandleCallbackForNumericUserID")
req := newRequestWithAuthCode(t, testServer.URL, "TestHandleCallbackWithInsecureSkipEmailVerifiedWhenKeyNotFound")

identity, err := conn.HandleCallback(connector.Scopes{Groups: true}, req)
assert.Equal(t, err, nil)
Expand Down

0 comments on commit de35da8

Please sign in to comment.