Skip to content

Commit

Permalink
Fixed bug that multiplex connection don't close after running test ca…
Browse files Browse the repository at this point in the history
…ses. (#4474)
  • Loading branch information
limingxinleo authored Jan 20, 2022
1 parent 6337737 commit 0758fae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions co-phpunit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env php
<?php
<?php
declare (strict_types=1);
/*
* This file is part of PHPUnit.
Expand Down Expand Up @@ -40,5 +40,6 @@ Swoole\Coroutine::set(['hook_flags' => SWOOLE_HOOK_ALL, 'exit_condition' => func
Swoole\Coroutine\run(function () use(&$code) {
$code = PHPUnit\TextUI\Command::main(false);
Swoole\Timer::clearAll();
Hyperf\Utils\Coordinator\CoordinatorManager::until(Hyperf\Utils\Coordinator\Constants::WORKER_EXIT)->resume();
});
die($code);
die($code);

0 comments on commit 0758fae

Please sign in to comment.