* Increasing timeout from 2 to 20 sec.

* Style fix
This commit is contained in:
Vitaliy Zakaznikov 2019-06-13 06:36:59 -04:00
parent 576393272b
commit 825c21f29a
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ with client(name='client1>', log=log) as client1, client(name='client2>', log=lo
client1.send('DROP TABLE IF EXISTS test.lv') client1.send('DROP TABLE IF EXISTS test.lv')
client1.expect(prompt) client1.expect(prompt)
client1.send(' DROP TABLE IF EXISTS test.mt') client1.send('DROP TABLE IF EXISTS test.mt')
client1.expect(prompt) client1.expect(prompt)
client1.send('CREATE TABLE test.mt (a Int32) Engine=MergeTree order by tuple()') client1.send('CREATE TABLE test.mt (a Int32) Engine=MergeTree order by tuple()')
client1.expect(prompt) client1.expect(prompt)

View File

@ -17,5 +17,5 @@ def client(command=None, name='', log=None):
client = uexpect.spawn(command) client = uexpect.spawn(command)
client.eol('\r') client.eol('\r')
client.logger(log, prefix=name) client.logger(log, prefix=name)
client.timeout(2) client.timeout(20)
return client return client

View File

@ -10,5 +10,5 @@ import httpexpect
def client(request, name='', log=None): def client(request, name='', log=None):
client = httpexpect.spawn({'host':'localhost','port':8123}, request) client = httpexpect.spawn({'host':'localhost','port':8123}, request)
client.logger(log, prefix=name) client.logger(log, prefix=name)
client.timeout(2) client.timeout(20)
return client return client