We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 566f5d7 commit accd1fbCopy full SHA for accd1fb
test/EventLoopTest.php
@@ -203,15 +203,13 @@ public function testSuspensionWithinCallbackGarbageCollection(): void
203
$memory = 0;
204
$i = 0;
205
206
- EventLoop::repeat(0.001, static function (string $id) use (&$memory, &$i) {
+ EventLoop::repeat(0, static function (string $id) use (&$memory, &$i) {
207
$suspension = EventLoop::getSuspension();
208
EventLoop::defer(static fn () => $suspension->resume());
209
$suspension->suspend();
210
211
if (++$i % 250 === 0) {
212
- \gc_collect_cycles();
213
-
214
- if ($memory > 0) {
+ if ($i > 500) {
215
self::assertSame($memory, \memory_get_usage());
216
}
217
0 commit comments