Skip to content

Commit

Permalink
Modify test
Browse files Browse the repository at this point in the history
  • Loading branch information
nkshah2 committed Oct 20, 2023
1 parent 12d1241 commit f8c0a44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipe/session/verifySession_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1112,14 +1112,20 @@ func TestThatResponseHeadersAreCorrectWhenUsingHeaders(t *testing.T) {

accessAllowHeaderValues := strings.Split(res.Header.Get("Access-Control-Expose-Headers"), ",")
frontTokenCount := 0
stAccessTokenCount := 0

for _, value := range accessAllowHeaderValues {
if strings.Contains(value, "front-token") {
frontTokenCount += 1
}

if strings.Contains(value, "st-access-token") {
stAccessTokenCount += 1
}
}

assert.Equal(t, frontTokenCount, 1)
assert.Equal(t, stAccessTokenCount, 1)
}

type typeTestEndpoint struct {
Expand Down

0 comments on commit f8c0a44

Please sign in to comment.