updated test status codes to 2xx due to go 1.26.0 stricter checks

This commit is contained in:
Gani Georgiev
2026-02-13 20:02:55 +02:00
parent 1d72c8487e
commit ac8a4583cb

View File

@@ -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",
},