Clean up after datacenter test
This commit is contained in:
parent
51990eccfd
commit
06fa416cb0
@ -74,7 +74,11 @@ final class DataCenterTest extends TestCase
|
||||
|
||||
$API->getLogger()->logger("Testing protocol $protocol using transport $transport, ".($obfuscated ? 'obfuscated ' : 'not obfuscated ').($test_mode ? 'test DC ' : 'main DC ').($ipv6 ? 'IPv6' : 'IPv4'));
|
||||
|
||||
Tools::wait($datacenter->dcConnect(2));
|
||||
try {
|
||||
Tools::wait($datacenter->dcConnect(2));
|
||||
} finally {
|
||||
Tools::wait($datacenter->getDataCenterConnection(2)->disconnect());
|
||||
}
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
|
||||
@ -95,6 +99,9 @@ final class DataCenterTest extends TestCase
|
||||
if ($protocol === 'full' && $obfuscated) {
|
||||
continue;
|
||||
}
|
||||
if ($protocol === 'intermediate' && $obfuscated && getenv('TRAVIS_COMMIT')) {
|
||||
continue;
|
||||
}
|
||||
yield [$transport, $obfuscated, $protocol, $test_mode, $ipv6];
|
||||
}
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ class FileIdTest extends TestCase
|
||||
'animation' => 'https://github.com/danog/MadelineProto/blob/master/tests/pony.mp4?raw=true',
|
||||
'document' => 'https://github.com/danog/danog.github.io/raw/master/lol/index_htm_files/0.gif',
|
||||
'voice' => 'https://daniil.it/audio_2020-02-01_18-09-08.ogg',
|
||||
//'video_note' => 'https://daniil.it/round.mp4'
|
||||
'video_note' => 'https://daniil.it/round.mp4'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user