From acedda377e7cf5a72c836d6c5573222043cd291a Mon Sep 17 00:00:00 2001 From: Juan Calderon-Perez Date: Tue, 16 Jul 2024 08:35:43 -0400 Subject: [PATCH] Update Redirect Benchmarks --- redirect_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redirect_test.go b/redirect_test.go index 2a375a2fb4..a743fb2528 100644 --- a/redirect_test.go +++ b/redirect_test.go @@ -549,7 +549,7 @@ func Benchmark_Redirect_Route_WithFlashMessages(b *testing.B) { require.Equal(b, 302, c.Response().StatusCode()) require.Equal(b, "/user", string(c.Response().Header.Peek(HeaderLocation))) - equal := c.GetRespHeader(HeaderSetCookie) == "fiber_flash=success:1,message:test; path=/; SameSite=Lax" || c.GetRespHeader(HeaderSetCookie) == "fiber_flash=message:test,success:1; path=/; SameSite=Lax" + equal := c.GetRespHeader(HeaderSetCookie) == "fiber_flash=success:1,message:test; path=/; HttpOnly; SameSite=Lax" || c.GetRespHeader(HeaderSetCookie) == "fiber_flash=message:test,success:1; path=/; HttpOnly; SameSite=Lax" require.True(b, equal) c.Redirect().parseAndClearFlashMessages() @@ -603,7 +603,7 @@ func Benchmark_Redirect_processFlashMessages(b *testing.B) { c.Redirect().processFlashMessages() } - require.Equal(b, "fiber_flash=success:1,message:test; path=/; SameSite=Lax", c.GetRespHeader(HeaderSetCookie)) + require.Equal(b, "fiber_flash=success:1,message:test; path=/; HttpOnly; SameSite=Lax", c.GetRespHeader(HeaderSetCookie)) } // go test -v -run=^$ -bench=Benchmark_Redirect_Messages -benchmem -count=4