@@ -266,9 +266,9 @@ function ($e) use (&$exception) {
266266 }
267267 );
268268
269- \Clue \ React \Block \ sleep (0.01 );
269+ \React \ Async \await ( \ React \Promise \ Timer \ sleep (0.01 ) );
270270 if ($ exception === null ) {
271- \Clue \ React \Block \ sleep (0.2 );
271+ \React \ Async \await ( \ React \Promise \ Timer \ sleep (0.2 ) );
272272 }
273273
274274 /** @var \RuntimeException $exception */
@@ -437,9 +437,9 @@ function ($e) use (&$exception) {
437437 }
438438 );
439439
440- \Clue \ React \Block \ sleep (0.01 );
440+ \React \ Async \await ( \ React \Promise \ Timer \ sleep (0.01 ) );
441441 if ($ exception === null ) {
442- \Clue \ React \Block \ sleep (0.2 );
442+ \React \ Async \await ( \ React \Promise \ Timer \ sleep (0.2 ) );
443443 }
444444
445445 /** @var \RuntimeException $exception */
@@ -476,7 +476,7 @@ function ($e) use (&$wait) {
476476 }
477477 );
478478
479- \Clue \ React \Block \ sleep (0.2 );
479+ \React \ Async \await ( \ React \Promise \ Timer \ sleep (0.2 ) );
480480 $ this ->assertTrue ($ wait );
481481
482482 $ this ->assertNotNull ($ client );
@@ -513,7 +513,7 @@ function ($e) use (&$wait) {
513513 }
514514 );
515515
516- \Clue \ React \Block \ sleep (0.2 );
516+ \React \ Async \await ( \ React \Promise \ Timer \ sleep (0.2 ) );
517517 $ this ->assertTrue ($ wait );
518518
519519 $ this ->assertNotNull ($ client );
@@ -548,9 +548,9 @@ function ($e) use (&$exception) {
548548 }
549549 );
550550
551- \Clue \ React \Block \ sleep (0.01 );
551+ \React \ Async \await ( \ React \Promise \ Timer \ sleep (0.01 ) );
552552 if ($ exception === null ) {
553- \Clue \ React \Block \ sleep (0.2 );
553+ \React \ Async \await ( \ React \Promise \ Timer \ sleep (0.2 ) );
554554 }
555555
556556 /** @var \RuntimeException $exception */
@@ -600,9 +600,9 @@ function ($e) use (&$exception) {
600600 }
601601 );
602602
603- \Clue \ React \Block \ sleep (0.01 );
603+ \React \ Async \await ( \ React \Promise \ Timer \ sleep (0.01 ) );
604604 if ($ exception === null ) {
605- \Clue \ React \Block \ sleep (0.2 );
605+ \React \ Async \await ( \ React \Promise \ Timer \ sleep (0.2 ) );
606606 }
607607
608608 /** @var \RuntimeException $exception */
@@ -652,9 +652,9 @@ function ($e) use (&$exception) {
652652 }
653653 );
654654
655- \Clue \ React \Block \ sleep (0.01 );
655+ \React \ Async \await ( \ React \Promise \ Timer \ sleep (0.01 ) );
656656 if ($ exception === null ) {
657- \Clue \ React \Block \ sleep (0.2 );
657+ \React \ Async \await ( \ React \Promise \ Timer \ sleep (0.2 ) );
658658 }
659659
660660 /** @var \RuntimeException $exception */
@@ -687,7 +687,7 @@ public function testQueryResolvesIfServerSendsValidResponse()
687687 $ query = new Query ('google.com ' , Message::TYPE_A , Message::CLASS_IN );
688688
689689 $ promise = $ executor ->query ($ query );
690- $ response = \Clue \ React \Block \await ($ promise , null , 0.2 );
690+ $ response = \React \Async \await (\ React \ Promise \ Timer \timeout ( $ promise , 0.2 ) );
691691
692692 $ this ->assertInstanceOf ('React\Dns\Model\Message ' , $ response );
693693 }
0 commit comments