From 39edab15caae905ebe4b24339eaff5e244eca22d Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Sun, 14 Jun 2020 01:04:40 +0200 Subject: [PATCH] fix(tests) remove sleep before fetching emails --- tests/e2e/Services/Account/AccountBase.php | 4 ---- tests/e2e/Services/Teams/TeamsBaseClient.php | 2 -- 2 files changed, 6 deletions(-) diff --git a/tests/e2e/Services/Account/AccountBase.php b/tests/e2e/Services/Account/AccountBase.php index 97ca751035..794f6f2577 100644 --- a/tests/e2e/Services/Account/AccountBase.php +++ b/tests/e2e/Services/Account/AccountBase.php @@ -659,8 +659,6 @@ trait AccountBase $this->assertEquals(2, $response['body']['type']); $this->assertIsNumeric($response['body']['expire']); - sleep(1); - $lastEmail = $this->getLastEmail(); $this->assertEquals($email, $lastEmail['to'][0]['address']); @@ -953,8 +951,6 @@ trait AccountBase $this->assertEquals(3, $response['body']['type']); $this->assertIsNumeric($response['body']['expire']); - sleep(1); - $lastEmail = $this->getLastEmail(); $this->assertEquals($email, $lastEmail['to'][0]['address']); diff --git a/tests/e2e/Services/Teams/TeamsBaseClient.php b/tests/e2e/Services/Teams/TeamsBaseClient.php index de0a140ec4..ceb0d86e5c 100644 --- a/tests/e2e/Services/Teams/TeamsBaseClient.php +++ b/tests/e2e/Services/Teams/TeamsBaseClient.php @@ -65,8 +65,6 @@ trait TeamsBaseClient $this->assertIsInt($response['body']['joined']); $this->assertEquals(false, $response['body']['confirm']); - sleep(1); - $lastEmail = $this->getLastEmail(); $this->assertEquals($email, $lastEmail['to'][0]['address']);