From c69ea2512aee17c1302478474ff5240ef743b7b6 Mon Sep 17 00:00:00 2001 From: Marco Slot Date: Thu, 3 Dec 2020 11:52:50 +0100 Subject: [PATCH] Fix flappy failure test --- .../regress/expected/failure_connection_establishment.out | 4 ++-- src/test/regress/sql/failure_connection_establishment.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/expected/failure_connection_establishment.out b/src/test/regress/expected/failure_connection_establishment.out index 7dda5514f..a7ef7008a 100644 --- a/src/test/regress/expected/failure_connection_establishment.out +++ b/src/test/regress/expected/failure_connection_establishment.out @@ -141,8 +141,8 @@ SELECT count(*) FROM products; (1 row) -- use OFFSET 1 to prevent printing the line where source --- is the worker -SELECT citus.dump_network_traffic() ORDER BY 1 OFFSET 1; +-- is the worker, and LIMIT 1 in case there were multiple connections +SELECT citus.dump_network_traffic() ORDER BY 1 LIMIT 1 OFFSET 1; dump_network_traffic --------------------------------------------------------------------- (1,coordinator,"[initial message]") diff --git a/src/test/regress/sql/failure_connection_establishment.sql b/src/test/regress/sql/failure_connection_establishment.sql index 0eb058acc..cf9d3f4eb 100644 --- a/src/test/regress/sql/failure_connection_establishment.sql +++ b/src/test/regress/sql/failure_connection_establishment.sql @@ -81,8 +81,8 @@ SELECT count(*) FROM products; SELECT count(*) FROM products; -- use OFFSET 1 to prevent printing the line where source --- is the worker -SELECT citus.dump_network_traffic() ORDER BY 1 OFFSET 1; +-- is the worker, and LIMIT 1 in case there were multiple connections +SELECT citus.dump_network_traffic() ORDER BY 1 LIMIT 1 OFFSET 1; SELECT citus.mitmproxy('conn.allow()'); SET citus.shard_replication_factor TO 1;