Increase allowed query time

This commit is contained in:
Pavel Kruglov 2021-03-05 16:18:12 +03:00
parent 271398be61
commit ed6363b88b

View File

@ -60,13 +60,13 @@ def test(started_cluster):
start = time.time()
NODES['node1'].query_and_get_error('SELECT * FROM distributed_table settings receive_timeout=5, use_hedged_requests=0, async_socket_for_remote=0;')
end = time.time()
assert end - start < 6
assert end - start < 10
start = time.time()
error = NODES['node1'].query_and_get_error('SELECT * FROM distributed_table settings receive_timeout=5, use_hedged_requests=0;')
end = time.time()
assert end - start < 6
assert end - start < 10
# Check that exception about timeout wasn't thrown from DB::ReadBufferFromPocoSocket::nextImpl().
assert error.find('DB::ReadBufferFromPocoSocket::nextImpl()') == -1
@ -75,7 +75,7 @@ def test(started_cluster):
error = NODES['node1'].query_and_get_error('SELECT * FROM distributed_table settings receive_timeout=5;')
end = time.time()
assert end - start < 6
assert end - start < 10
# Check that exception about timeout wasn't thrown from DB::ReadBufferFromPocoSocket::nextImpl().
assert error.find('DB::ReadBufferFromPocoSocket::nextImpl()') == -1