We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3ed93c commit b607686Copy full SHA for b607686
tests/SchedulerTest.php
@@ -298,4 +298,19 @@ public function testOneOffTasksRunOnlyOnce()
298
$this->assertEquals(1, $this->scheduler->countTimers());
299
$this->assertEquals(1, $this->scheduler->countPromises($task->getUuid()));
300
}
301
+
302
+ public function testAlreadyRejectedTaskErrorPropagation()
303
+ {
304
+ $this->expectNotToPerformAssertions();
305
306
+ // Won't work yet
307
+ $task = new PromiseBoundTask(Promise\reject(new TaskRejectedException()));
308
+ $task1 = new PromiseBoundTask(Promise\reject('Rejected!'));
309
310
+ $this->scheduler->schedule($task, new ImmediateDueFrequency());
311
312
+ $this->runAndStopEventLoop();
313
314
+ // Assert here
315
+ }
316
0 commit comments