File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ private static function awaitInstances()
290290
291291 foreach ($ dataLoaders as $ dataLoader ) {
292292 if (!$ dataLoader || !$ dataLoader ->needProcess ()) {
293- $ wait = false ;
293+ $ wait | = false ;
294294 continue ;
295295 }
296296 $ wait = true ;
Original file line number Diff line number Diff line change @@ -803,6 +803,11 @@ public function testAwaitAlsoAwaitsNewlyCreatedDataloaders()
803803 return self ::$ promiseAdapter ->createAll (['A ' ]);
804804 }, self ::$ promiseAdapter );
805805
806+ // This tests that an idling dataloader do not cause the others to be skipped.
807+ $ third = new DataLoader (function () {
808+ // noop
809+ }, self ::$ promiseAdapter );
810+
806811 DataLoader::await ($ first ->load ('A ' ));
807812
808813 $ this ->assertTrue ($ firstComplete );
You can’t perform that action at this time.
0 commit comments