From 1d56c1401f14d12c02f6fff09baf1b562b8cda7a Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 1 Aug 2025 17:39:35 +0200 Subject: [PATCH] lib2700: use `testnum` Follow-up to 02dd471bbf8e04fc595ad0f28c965c278ffcefd0 #17591 Follow-up to d3594be6531df3d5eafcdd09f84ad9dee1777028 #17136 Closes #18138 --- tests/data/test2708 | 1 - tests/libtest/lib2700.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/data/test2708 b/tests/data/test2708 index fd0ee0707f..0dbd873520 100644 --- a/tests/data/test2708 +++ b/tests/data/test2708 @@ -24,7 +24,6 @@ ws://%HOSTIP:%HTTPPORT/%TESTNUMBER CURL_WS_FORCE_ZERO_MASK=1 -LIB2700_AUTO_PONG=1 diff --git a/tests/libtest/lib2700.c b/tests/libtest/lib2700.c index c0d2fdb642..d8dbbbb93a 100644 --- a/tests/libtest/lib2700.c +++ b/tests/libtest/lib2700.c @@ -228,7 +228,7 @@ static CURLcode test_lib2700(const char *URL) easy_setopt(curl, CURLOPT_DEBUGFUNCTION, libtest_debug_cb); easy_setopt(curl, CURLOPT_VERBOSE, 1L); easy_setopt(curl, CURLOPT_CONNECT_ONLY, 2L); - if(!getenv("LIB2700_AUTO_PONG")) + if(testnum != 2708) easy_setopt(curl, CURLOPT_WS_OPTIONS, (long)CURLWS_NOAUTOPONG); res = curl_easy_perform(curl); -- 2.47.3