Skip to content

Commit

Permalink
fix task test error
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed May 1, 2021
1 parent 0214904 commit e658da8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/task/test/unit/TaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@
*/
class TaskTest extends TestCase
{
/**
* @throws TaskException
* @expectedException \Swoft\Task\Exception\TaskException
*/
public function testCo(): void
{
$this->expectedException(\Swoft\Task\Exception\TaskException::class);
$this->mockTaskServer->co('demoTestTask', 'method', []);
}

Expand Down Expand Up @@ -66,12 +63,9 @@ public function testCo3(): void
Context::getWaitGroup()->wait();
}

/**
* @throws TaskException
* @expectedException \Swoft\Task\Exception\TaskException
*/
public function testCo6(): void
{
$this->expectedException(\Swoft\Task\Exception\TaskException::class);
$this->mockTaskServer->co('demoTestTask', 'method3', ['name', 18306]);
}

Expand Down

0 comments on commit e658da8

Please sign in to comment.