We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7935564 commit e5c4c61Copy full SHA for e5c4c61
src/Test.php
@@ -1224,16 +1224,16 @@ function testDeferEnabledInNextTick() {
1224
1225
$invoked = 0;
1226
1227
- $repeat = $this->loop->repeat($delay = 0, function () use (&$invoked) {
+ $watcher = $this->loop->onWritable(STDOUT, function () use (&$invoked) {
1228
$invoked++;
1229
});
1230
1231
$tick();
1232
1233
1234
1235
- $this->loop->disable($repeat);
1236
- $this->loop->enable($repeat);
+ $this->loop->disable($watcher);
+ $this->loop->enable($watcher);
1237
$tick(); // disable + immediate enable after a tick should have no effect either
1238
1239
$this->assertEquals(4, $invoked);
0 commit comments