From c9e3c3a2d5d9a7a825ac85603980818a59049835 Mon Sep 17 00:00:00 2001 From: Sky Johnson Date: Sat, 7 Sep 2024 18:51:37 -0500 Subject: [PATCH] Add iterations before failure to test results --- tests/tools.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/tools.php b/tests/tools.php index 33baa94..e9d27f0 100644 --- a/tests/tools.php +++ b/tests/tools.php @@ -114,7 +114,8 @@ function runIterations(int $iterations, $r, array $routes) { $start2 = microtime(true); $res = $r->lookup($method, $uri); if ($res === 404 || $res === 405) { - echo Color::red("Failed to handle request.\n$method $res\n"."├─ URI: $uri\n├─ Path: $path\n"); + echo Color::red("Failed to handle request.\n$method $res\n"."├─ URI: $uri\n└─ Path: $path\n"); + echo Color::yellow("Completed $i iterations before failure.\n"); exit(1); } if ($i !== 0 && $i % ($interval) === 0) echoMemoryAndTime($i, $start2);