From f1750d918f91c19f55275ef14591b287839aea53 Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Tue, 15 Dec 2020 13:51:34 +0100 Subject: [PATCH] test(e2e): handle messages arriving later --- features/DeviceMessages.feature | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/DeviceMessages.feature b/features/DeviceMessages.feature index 7bfc36cd..38bb0913 100644 --- a/features/DeviceMessages.feature +++ b/features/DeviceMessages.feature @@ -35,7 +35,9 @@ Feature: Device: Messages """ SELECT measure_value::double AS value FROM "{historicaldataDatabaseName}"."{historicaldataTableName}" - WHERE deviceId='{cat:id}' AND measure_name='btn' AND measure_value::double IS NOT NULL LIMIT 2 + WHERE deviceId='{cat:id}' AND measure_name='btn' AND measure_value::double IS NOT NULL + ORDER BY time DESC + LIMIT 2 """ Then "timestreamQueryResult" should match this JSON """