Skip to content

Commit 3bc540b

Browse files
committed
Skip leproxy tests
1 parent 06b81c0 commit 3bc540b

3 files changed

Lines changed: 4 additions & 19 deletions

File tree

tests/danog/MadelineProto/DataCenterTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ private static function getBaseSettings(bool $test): Settings
5555
}
5656
public static function setUpBeforeClass(): void
5757
{
58+
/*
5859
if (isset(self::$proxy)) {
5960
return;
6061
}
@@ -63,6 +64,7 @@ public static function setUpBeforeClass(): void
6364
break;
6465
}
6566
self::$proxyEndpoint = InternetAddress::fromString(str_replace('tcp://', '', $addr));
67+
*/
6668

6769
self::$main = new API(
6870
sys_get_temp_dir(). '/'.random_int(0, PHP_INT_MAX).'_'.getmypid().'testing_datacenter_main.madeline',
@@ -111,7 +113,8 @@ public function testCanUseProtocol(string $transport, bool $obfuscated, string $
111113

112114
private static function provideProxies(bool $enable = true): iterable
113115
{
114-
foreach ([HttpProxy::class, SocksProxy::class, null] as $proxy) {
116+
//foreach ([HttpProxy::class, SocksProxy::class, null] as $proxy) {
117+
foreach ([null] as $proxy) {
115118
yield $proxy ? [$proxy => [['address' => self::$proxyEndpoint->getAddress(), 'port' => self::$proxyEndpoint->getPort()]]] : [];
116119
}
117120
}

vendor-bin/leproxy/composer.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

vendor-bin/leproxy/proxy.php

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)