From 7fe7a01d43074d334b5f083870d7a03b77b8f88c Mon Sep 17 00:00:00 2001 From: Luke Downing Date: Fri, 10 Feb 2023 14:49:56 +0000 Subject: [PATCH] WIP --- tests/Hooks/BeforeAllTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Hooks/BeforeAllTest.php b/tests/Hooks/BeforeAllTest.php index 12524554..c318e1e2 100644 --- a/tests/Hooks/BeforeAllTest.php +++ b/tests/Hooks/BeforeAllTest.php @@ -1,11 +1,12 @@ calls baseline. This is because // two other tests are executed before this one due to filename ordering. $args = $_SERVER['argv'] ?? []; -$single = (isset($args[1]) && Str::endsWith(__FILE__, $args[1])) || ($_SERVER['PEST_PARALLEL'] ?? false); +$single = (isset($args[1]) && Str::endsWith(__FILE__, $args[1])) || Parallel::isInParallelProcess(); $offset = $single ? 0 : 2; uses()->beforeAll(function () use ($offset) {