From 8ebbd7a398b615918c1bf2eabdb3ee83dfb43447 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Thu, 10 Dec 2020 09:10:48 +0200 Subject: [PATCH] Added better error logging --- tests/e2e/Services/Functions/FunctionsCustomServerTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index bc897c4345..6e5ddcce17 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -550,6 +550,11 @@ class FunctionsCustomServerTest extends Scope $this->assertEquals($executions['body']['executions'][0]['exitCode'], 0); $stdout = explode("\n", $executions['body']['executions'][0]['stdout']); + + if($executions['body']['executions'][0]['status'] === 'failed') { + var_dump($executions['body']['executions'][0]['stdout']); + var_dump($executions['body']['executions'][0]['stderr']); + } $this->assertEquals($stdout[0], $functionId); $this->assertEquals($stdout[1], 'Test '.$name);