From f8c0a4411df27430dc10b487d0181bc9331ca777 Mon Sep 17 00:00:00 2001 From: Nemi Shah Date: Fri, 20 Oct 2023 12:18:12 +0530 Subject: [PATCH] Modify test --- recipe/session/verifySession_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipe/session/verifySession_test.go b/recipe/session/verifySession_test.go index c444e09a..c76894c7 100644 --- a/recipe/session/verifySession_test.go +++ b/recipe/session/verifySession_test.go @@ -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 {