From ced3866aef055492a00b5df523dab29e826bf0b0 Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Fri, 8 Jan 2021 16:49:33 +0100 Subject: [PATCH] test(e2e): group flaky test Sometimes the permission is not in place right after the rule has been created --- features/DeviceBatchData.feature | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/features/DeviceBatchData.feature b/features/DeviceBatchData.feature index 2aa56434..c63ae2f6 100644 --- a/features/DeviceBatchData.feature +++ b/features/DeviceBatchData.feature @@ -41,14 +41,16 @@ Feature: Device: Batch Data } """ - Scenario: Query the historical gps data - Given I am authenticated with Cognito When I run this Timestream query """ SELECT measure_value::double AS value FROM "{historicaldataDatabaseName}"."{historicaldataTableName}" - WHERE deviceId='{cat:id}' AND measure_name='gps.lng' AND measure_value::double IS NOT NULL LIMIT 2 + WHERE deviceId='{cat:id}' + AND measure_name='gps.lng' + AND measure_value::double IS NOT NULL + ORDER BY time DESC + LIMIT 2 """ Then "timestreamQueryResult" should match this JSON # The values are string because they have not yet run through the formatter