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:
Kévin Dunglas
2023-07-10 18:46:04 +02:00
committed by GitHub
parent 1a0d94a67b
commit e0cf262224
6 changed files with 38 additions and 112 deletions

View File

@@ -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);
};