mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
test: fix and refactor some flaky tests (#165)
* test: fix and refactor some flaky tests * better fix for flush.php * simpler DHA config
This commit is contained in:
7
testdata/connectionStatusLog.php
vendored
7
testdata/connectionStatusLog.php
vendored
@@ -5,13 +5,12 @@ ignore_user_abort(true);
|
||||
require_once __DIR__.'/_executor.php';
|
||||
|
||||
return function () {
|
||||
if(isset($_GET['finish'])) {
|
||||
if($_GET['finish'] ?? false) {
|
||||
frankenphp_finish_request();
|
||||
}
|
||||
|
||||
echo 'hi';
|
||||
if(isset($_GET['flush'])) {
|
||||
flush();
|
||||
}
|
||||
flush();
|
||||
$status = (string) connection_status();
|
||||
error_log("request {$_GET['i']}: " . $status);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user