Skip to content

Commit 5c9bc40

Browse files
committed
Ensure we let the loop run it's course to clean up
1 parent 3135552 commit 5c9bc40

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/TestCase.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ protected function rmdir($dir)
107107

108108
protected function await(PromiseInterface $promise, LoopInterface $loop, $timeout = self::TIMEOUT)
109109
{
110-
return Block\await($promise, $loop, $timeout);
110+
$result = Block\await($promise, $loop, $timeout);
111+
$loop->run(); // Ensure we let the loop run it's course to clean up
112+
return $result;
111113
}
112114
}

0 commit comments

Comments
 (0)