From 477bc95a000a71a28228a30809585dc4dbdf102b Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 30 Jun 2022 09:37:59 +0000 Subject: [PATCH] fixed test --- tests/e2e/General/UsageTest.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/e2e/General/UsageTest.php b/tests/e2e/General/UsageTest.php index a4047df912..d46a2ee190 100644 --- a/tests/e2e/General/UsageTest.php +++ b/tests/e2e/General/UsageTest.php @@ -41,7 +41,7 @@ class UsageTest extends Scope { $this->assertEquals($email, $res['body']['email']); $this->assertNotEmpty($res['body']['$id']); $this->usersCount++; - $this->requestsCount += 2; + $this->requestsCount++; } sleep(65); @@ -62,4 +62,11 @@ class UsageTest extends Scope { $this->assertEquals($this->usersCount, $res['requests'][array_key_last($res['requests'])]['value']); } + protected function tearDown(): void + { + $this->usersCount = 0; + $this->requestsCount = 0; + $this->projectId = ''; + $this->headers = []; + } } \ No newline at end of file