Delete sleep in test

This commit is contained in:
codinghuang 2021-05-15 20:44:26 +08:00 committed by 李铭昕
parent cda7d9f9b0
commit be1917ef08

View File

@ -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)