Merge branch 'fix-test_dictionary_custom_settings' into more-checks-in-thread-status

This commit is contained in:
Alexey Milovidov 2023-08-03 14:34:39 +02:00
commit c038246094

View File

@ -2,6 +2,8 @@ import os
import pytest
from helpers.cluster import ClickHouseCluster
from helpers.test_tools import assert_eq_with_retry
DICTIONARY_FILES = [
"configs/dictionaries/FileSourceConfig.xml",
@ -78,5 +80,7 @@ def test_work(start_cluster):
assert caught_exception.find("Limit for result exceeded") != -1
assert query("SELECT dictGetString('test_http', 'first', toUInt64(1))") == "\\'a\n"
assert query("SELECT dictGetString('test_http', 'second', toUInt64(1))") == '"b\n'
# It is possible that the HTTP server takes long time to start accepting connections
assert_eq_with_retry(instance, "SELECT dictGetString('test_http', 'first', toUInt64(1))", "\\'a\n")
assert_eq_with_retry(instance, "SELECT dictGetString('test_http', 'second', toUInt64(1))", '"b\n')