mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 00:25:04 +00:00
Replace disallowed operators in tests/
This commit is contained in:
@ -54,7 +54,7 @@ class AsyncPoolTest extends TestCase{
|
||||
public function testTaskLeak() : void{
|
||||
$start = microtime(true);
|
||||
$this->pool->submitTask(new LeakTestAsyncTask());
|
||||
while(!LeakTestAsyncTask::$destroyed and microtime(true) < $start + 30){
|
||||
while(!LeakTestAsyncTask::$destroyed && microtime(true) < $start + 30){
|
||||
usleep(50 * 1000);
|
||||
$this->pool->collectTasks();
|
||||
}
|
||||
|
Reference in New Issue
Block a user