From 4978f26f8609a9f1c65f58aec774823e78c84116 Mon Sep 17 00:00:00 2001 From: yhirose Date: Sat, 14 Mar 2026 20:59:15 -0400 Subject: [PATCH] Fix port number in OpenStreamMalformedContentLength test to avoid conflicts --- test/test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.cc b/test/test.cc index c133dce6..5e27b72f 100644 --- a/test/test.cc +++ b/test/test.cc @@ -13968,7 +13968,7 @@ TEST(OpenStreamMalformedContentLength, OutOfRange) { #endif auto server_thread = serve_single_response( - PORT + 2, "HTTP/1.1 200 OK\r\n" + PORT + 4, "HTTP/1.1 200 OK\r\n" "Content-Type: text/plain\r\n" "Content-Length: 99999999999999999999999999\r\n" "Connection: close\r\n" @@ -13981,7 +13981,7 @@ TEST(OpenStreamMalformedContentLength, OutOfRange) { // crash the process. After the fix, strtoull silently clamps to // ULLONG_MAX so the stream opens without crashing. The important thing // is that the process does NOT terminate. - Client cli("127.0.0.1", PORT + 2); + Client cli("127.0.0.1", PORT + 4); auto handle = cli.open_stream("GET", "/"); EXPECT_TRUE(handle.is_valid());