]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib2700: use `testnum`
authorViktor Szakats <commit@vsz.me>
Fri, 1 Aug 2025 15:39:35 +0000 (17:39 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 1 Aug 2025 16:48:07 +0000 (18:48 +0200)
Follow-up to 02dd471bbf8e04fc595ad0f28c965c278ffcefd0 #17591
Follow-up to d3594be6531df3d5eafcdd09f84ad9dee1777028 #17136

Closes #18138

tests/data/test2708
tests/libtest/lib2700.c

index fd0ee0707fe09298afcbb5bc6b2240e1b9626bb5..0dbd87352090c9f9fa05d63a5ea1cf05ff104325 100644 (file)
@@ -24,7 +24,6 @@ ws://%HOSTIP:%HTTPPORT/%TESTNUMBER
 </command>
 <setenv>
 CURL_WS_FORCE_ZERO_MASK=1
-LIB2700_AUTO_PONG=1
 </setenv>
 </client>
 
index c0d2fdb642088cb433960d5810fc17388759432f..d8dbbbb93a07cb193d4ccc3304a89ff2c2d6d540 100644 (file)
@@ -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);