From be1917ef0817660694fe154fd7be160c888d85a3 Mon Sep 17 00:00:00 2001 From: codinghuang Date: Sat, 15 May 2021 20:44:26 +0800 Subject: [PATCH] Delete sleep in test --- src/dag/tests/DagTest.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/dag/tests/DagTest.php b/src/dag/tests/DagTest.php index 154dcad17..19185121c 100644 --- a/src/dag/tests/DagTest.php +++ b/src/dag/tests/DagTest.php @@ -238,15 +238,15 @@ class DagTest extends TestCase { $key = 1; $dag = new \Hyperf\Dag\Dag(); - $a = \Hyperf\Dag\Vertex::make(function() {sleep(1); echo "A\n";}, (string) $key++); - $b = \Hyperf\Dag\Vertex::make(function() {sleep(1); echo "B\n";}, (string) $key++); - $c = \Hyperf\Dag\Vertex::make(function() {sleep(1); echo "C\n";}, (string) $key++); - $d = \Hyperf\Dag\Vertex::make(function() {sleep(1); echo "D\n";}, (string) $key++); - $e = \Hyperf\Dag\Vertex::make(function() {sleep(1); echo "E\n";}, (string) $key++); - $f = \Hyperf\Dag\Vertex::make(function() {sleep(1); echo "F\n";}, (string) $key++); - $g = \Hyperf\Dag\Vertex::make(function() {sleep(1); echo "G\n";}, (string) $key++); - $h = \Hyperf\Dag\Vertex::make(function() {sleep(1); echo "H\n";}, (string) $key++); - $i = \Hyperf\Dag\Vertex::make(function() {sleep(1); echo "I\n";}, (string) $key++); + $a = \Hyperf\Dag\Vertex::make(function() {echo "A\n";}, (string) $key++); + $b = \Hyperf\Dag\Vertex::make(function() {echo "B\n";}, (string) $key++); + $c = \Hyperf\Dag\Vertex::make(function() {echo "C\n";}, (string) $key++); + $d = \Hyperf\Dag\Vertex::make(function() {echo "D\n";}, (string) $key++); + $e = \Hyperf\Dag\Vertex::make(function() {echo "E\n";}, (string) $key++); + $f = \Hyperf\Dag\Vertex::make(function() {echo "F\n";}, (string) $key++); + $g = \Hyperf\Dag\Vertex::make(function() {echo "G\n";}, (string) $key++); + $h = \Hyperf\Dag\Vertex::make(function() {echo "H\n";}, (string) $key++); + $i = \Hyperf\Dag\Vertex::make(function() {echo "I\n";}, (string) $key++); $dag->addVertex($a) ->addVertex($b) ->addVertex($c)