Skip to content

Commit 70a3111

Browse files
test(high performance setup): fixed url rewrite
1 parent 49faa90 commit 70a3111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/HEXONET/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ public function testUseHighPerformanceConnectionSetup(): void
599599
$oldurl = self::$cl->getURL();
600600
$hostname = parse_url($oldurl, PHP_URL_HOST);
601601
$newurl = str_replace($hostname, "127.0.0.1", $oldurl);
602-
$newurl = str_replace("https://", "http://", $oldurl);
602+
$newurl = str_replace("https://", "http://", $newurl);
603603
self::$cl->useHighPerformanceConnectionSetup();
604604
$this->assertEquals(self::$cl->getURL(), $newurl);
605605
}

0 commit comments

Comments
 (0)