From 6d22d68acf0592bd564643d4f21a507190aa59d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Fri, 1 May 2026 15:59:56 +0400 Subject: [PATCH] Fix maxAgeSeconds type handling in cookie pattern factory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The inline int type assertion silently dropped int64 and float64 values already supported by Attrs.getInt. Signed-off-by: Émile Ré --- e2e/internal/factory/factory.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/e2e/internal/factory/factory.go b/e2e/internal/factory/factory.go index 2f65c106c..918ea2e55 100644 --- a/e2e/internal/factory/factory.go +++ b/e2e/internal/factory/factory.go @@ -1369,9 +1369,7 @@ func CreateCookiePattern(c *testutil.Client, categoryID string, attrs ...Attrs) "description": a.getString("description", "Test cookie pattern"), } if _, ok := a["maxAgeSeconds"]; ok { - if v, ok := a["maxAgeSeconds"].(int); ok { - input["maxAgeSeconds"] = v - } + input["maxAgeSeconds"] = a.getInt("maxAgeSeconds", 0) } var result struct {