From cdecb6dbb97739e9bb6f51f02097d32a751259ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Thu, 5 Dec 2024 22:34:24 +0100 Subject: [PATCH] fix burn testing --- tests/mutex/MutexConcurrencyTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/mutex/MutexConcurrencyTest.php b/tests/mutex/MutexConcurrencyTest.php index ad5c6f05..97e733bd 100644 --- a/tests/mutex/MutexConcurrencyTest.php +++ b/tests/mutex/MutexConcurrencyTest.php @@ -103,6 +103,11 @@ public function testHighContention(\Closure $code, \Closure $mutexFactory): void $counter = $code(0); self::assertSame($concurrency * $iterations, $counter); + + // workaround for burn testing + foreach (static::$temporaryFiles as $filename) { + file_put_contents($filename, '0'); + } } /**