From dea9aef9652e613fbcc7c95773861b1c0ce039e2 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 20 Jul 2022 10:25:48 +0000 Subject: [PATCH] convert execution/compute time to integer in test --- tests/e2e/General/UsageTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/e2e/General/UsageTest.php b/tests/e2e/General/UsageTest.php index 6f67b791cb..4cf8a970c2 100644 --- a/tests/e2e/General/UsageTest.php +++ b/tests/e2e/General/UsageTest.php @@ -493,8 +493,8 @@ class UsageTest extends Scope $this->assertEquals(201, $execution['headers']['status-code']); $this->assertNotEmpty($execution['body']['$id']); $this->assertEquals($functionId, $execution['body']['functionId']); - $compute += $execution['body']['time'] * 1000; - $executionTime += $execution['body']['time'] * 1000; + $compute += (int) ($execution['body']['time'] * 1000); + $executionTime += (int) ($execution['body']['time'] * 1000); $executions++; $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ @@ -522,8 +522,8 @@ class UsageTest extends Scope $this->assertEquals($executionId, $execution['body']['$id']); $this->assertEquals($functionId, $execution['body']['functionId']); - $compute += $execution['body']['time'] * 1000; - $executionTime += $execution['body']['time'] * 1000; + $compute += (int) ($execution['body']['time'] * 1000); + $executionTime += (int) ($execution['body']['time'] * 1000); sleep(45);