From ac8a4583cbbd8cbcc4e79708472d179bccc0f615 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Fri, 13 Feb 2026 20:02:55 +0200 Subject: [PATCH] updated test status codes to 2xx due to go 1.26.0 stricter checks --- tools/router/event_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/router/event_test.go b/tools/router/event_test.go index 8068ee1f..aba5405d 100644 --- a/tools/router/event_test.go +++ b/tools/router/event_test.go @@ -354,19 +354,19 @@ func TestEventString(t *testing.T) { scenarios := []testResponseWriteScenario[string]{ { name: "no explicit content-type", - status: 123, + status: 234, headers: nil, body: "test", - expectedStatus: 123, + expectedStatus: 234, expectedHeaders: map[string]string{"content-type": "text/plain; charset=utf-8"}, expectedBody: "test", }, { name: "with explicit content-type", - status: 123, + status: 234, headers: map[string]string{"content-type": "text/test"}, body: "test", - expectedStatus: 123, + expectedStatus: 234, expectedHeaders: map[string]string{"content-type": "text/test"}, expectedBody: "test", }, @@ -383,19 +383,19 @@ func TestEventHTML(t *testing.T) { scenarios := []testResponseWriteScenario[string]{ { name: "no explicit content-type", - status: 123, + status: 234, headers: nil, body: "test", - expectedStatus: 123, + expectedStatus: 234, expectedHeaders: map[string]string{"content-type": "text/html; charset=utf-8"}, expectedBody: "test", }, { name: "with explicit content-type", - status: 123, + status: 234, headers: map[string]string{"content-type": "text/test"}, body: "test", - expectedStatus: 123, + expectedStatus: 234, expectedHeaders: map[string]string{"content-type": "text/test"}, expectedBody: "test", },