]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1056: work with dynamic HTTP ipv6 port
authorDaniel Stenberg <daniel@haxx.se>
Fri, 17 Apr 2020 09:42:49 +0000 (11:42 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 18 Apr 2020 20:48:24 +0000 (22:48 +0200)
tests/data/test1056

index 52b0136149b7affda3701b18203b0f9ac3b0dea1..756d0f27f145a1785036ed468a6d79e5799cb353 100644 (file)
@@ -13,7 +13,7 @@ IPv6
 <reply>
 <data>
 HTTP/1.1 302 OK swsclose\r
-Location: http://[::1%259999]:8994/moo/10560002\r
+Location: http://[::1%259999]:%HTTP6PORT/moo/10560002\r
 Date: Thu, 31 Jul 2008 14:49:00 GMT\r
 Connection: close\r
 \r
@@ -27,7 +27,7 @@ body
 </data2>
 <datacheck>
 HTTP/1.1 302 OK swsclose\r
-Location: http://[::1%259999]:8994/moo/10560002\r
+Location: http://[::1%259999]:%HTTP6PORT/moo/10560002\r
 Date: Thu, 31 Jul 2008 14:49:00 GMT\r
 Connection: close\r
 \r
@@ -55,10 +55,6 @@ HTTP follow redirect from IPv4 to IPv6 with scope
  <command>
 http://%HOSTIP:%HTTPPORT/we/are/all/twits/1056 -L
 </command>
-# The data section doesn't do variable substitution, so we must assert this
-<precheck>
-perl -e "print 'Test requires default test server host and port' if ( '%HOST6IP' ne '[::1]' || '%HTTP6PORT' ne '8994' );"
-</precheck>
 </client>
 
 #