From 02fbdd65dfc7f29f809761a065a42f6e6d9c5c9c Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Sun, 16 Jun 2024 09:11:01 +0200 Subject: [PATCH] Update e2e_benchmark.py --- scripts/ci/e2e_benchmark.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/ci/e2e_benchmark.py b/scripts/ci/e2e_benchmark.py index 1e1012779..74ddf02c3 100644 --- a/scripts/ci/e2e_benchmark.py +++ b/scripts/ci/e2e_benchmark.py @@ -45,6 +45,10 @@ class BenchmarkRunner: code = response.json()['code'] if code == 'NoRoute': continue + elif benchmark_name == 'trip': + code = response.json()['code'] + if code == 'NoTrips': + continue raise Exception(f"Error: {response.status_code} {response.text}") times.append((end_time - start_time) * 1000) # convert to ms