From d5a5ba8f0d64875d42ad115642d48dd552ebde45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Mar=C3=ADn?= Date: Mon, 2 Aug 2021 15:19:40 +0200 Subject: [PATCH] Stateless tests: Keep an DNS error free log --- .../queries/0_stateless/00965_shard_unresolvable_addresses.sql | 3 +++ .../0_stateless/01083_expressions_in_engine_arguments.sql | 3 +++ .../0_stateless/01372_remote_table_function_empty_table.sql | 3 +++ 3 files changed, 9 insertions(+) diff --git a/tests/queries/0_stateless/00965_shard_unresolvable_addresses.sql b/tests/queries/0_stateless/00965_shard_unresolvable_addresses.sql index 6d57cd0447d..7026466fbab 100644 --- a/tests/queries/0_stateless/00965_shard_unresolvable_addresses.sql +++ b/tests/queries/0_stateless/00965_shard_unresolvable_addresses.sql @@ -1,2 +1,5 @@ SELECT count() FROM remote('127.0.0.1,localhos', system.one); -- { serverError 198 } SELECT count() FROM remote('127.0.0.1|localhos', system.one); + +-- Clear cache to avoid future errors in the logs +SYSTEM DROP DNS CACHE diff --git a/tests/queries/0_stateless/01083_expressions_in_engine_arguments.sql b/tests/queries/0_stateless/01083_expressions_in_engine_arguments.sql index e8ea12f9f9f..4a3ac513e36 100644 --- a/tests/queries/0_stateless/01083_expressions_in_engine_arguments.sql +++ b/tests/queries/0_stateless/01083_expressions_in_engine_arguments.sql @@ -68,3 +68,6 @@ INSERT INTO buffer VALUES (1); -- | |-> file (1) -- |-> remote(127.0.0.2) --> ... SELECT sum(n) from rich_syntax; + +-- Clear cache to avoid future errors in the logs +SYSTEM DROP DNS CACHE diff --git a/tests/queries/0_stateless/01372_remote_table_function_empty_table.sql b/tests/queries/0_stateless/01372_remote_table_function_empty_table.sql index 698c323d73f..4153dc632f3 100644 --- a/tests/queries/0_stateless/01372_remote_table_function_empty_table.sql +++ b/tests/queries/0_stateless/01372_remote_table_function_empty_table.sql @@ -1 +1,4 @@ SELECT * FROM remote('127..2', 'a.'); -- { serverError 36 } + +-- Clear cache to avoid future errors in the logs +SYSTEM DROP DNS CACHE