Skip to content

Commit f8c0a44

Browse files
committed
Modify test
1 parent 12d1241 commit f8c0a44

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

recipe/session/verifySession_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,14 +1112,20 @@ func TestThatResponseHeadersAreCorrectWhenUsingHeaders(t *testing.T) {
11121112

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

11161117
for _, value := range accessAllowHeaderValues {
11171118
if strings.Contains(value, "front-token") {
11181119
frontTokenCount += 1
11191120
}
1121+
1122+
if strings.Contains(value, "st-access-token") {
1123+
stAccessTokenCount += 1
1124+
}
11201125
}
11211126

11221127
assert.Equal(t, frontTokenCount, 1)
1128+
assert.Equal(t, stAccessTokenCount, 1)
11231129
}
11241130

11251131
type typeTestEndpoint struct {

0 commit comments

Comments
 (0)