Skip to content

Commit

Permalink
Swoole 4 Compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
twose committed Sep 24, 2018
1 parent 49973d4 commit 580cf37
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ require PHPUNIT_COMPOSER_INSTALL;
$server_list = require __DIR__ . '/servers/manager.php';

go(function () {
// run tests
PHPUnit\TextUI\Command::main();
// exit event loop (useless?)
swoole_event_exit();
try{
// run tests
PHPUnit\TextUI\Command::main();
}
catch (\Swoole\ExitException $e) {
return;
}
});

0 comments on commit 580cf37

Please sign in to comment.