Skip to content

Commit

Permalink
fix burn testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 5, 2024
1 parent b557ed0 commit cdecb6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/mutex/MutexConcurrencyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

/**
Expand Down

0 comments on commit cdecb6d

Please sign in to comment.