Skip to content

Commit 0758fae

Browse files
authored
Fixed bug that multiplex connection don't close after running test cases. (#4474)
1 parent 6337737 commit 0758fae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

co-phpunit

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env php
2-
<?php
2+
<?php
33
declare (strict_types=1);
44
/*
55
* This file is part of PHPUnit.
@@ -40,5 +40,6 @@ Swoole\Coroutine::set(['hook_flags' => SWOOLE_HOOK_ALL, 'exit_condition' => func
4040
Swoole\Coroutine\run(function () use(&$code) {
4141
$code = PHPUnit\TextUI\Command::main(false);
4242
Swoole\Timer::clearAll();
43+
Hyperf\Utils\Coordinator\CoordinatorManager::until(Hyperf\Utils\Coordinator\Constants::WORKER_EXIT)->resume();
4344
});
44-
die($code);
45+
die($code);

0 commit comments

Comments
 (0)