Fixing tests/queries/0_stateless/00979_live_view_watch_continuous_aggregates.py.

This commit is contained in:
Vitaliy Zakaznikov 2020-05-18 20:17:29 +02:00
parent 15f704095a
commit 59a1c230cd

View File

@ -33,28 +33,28 @@ with client(name='client1>', log=log) as client1, client(name='client2>', log=lo
client1.expect(r'0.*1' + end_of_block)
client2.send("INSERT INTO test.mt VALUES ('2019-01-01 00:00:00','New York',60),('2019-01-01 00:10:00','New York',70)")
client2.expect(prompt)
client1.expect(r'"2019-01-01 00:00:00","New York",65,2')
client1.expect(r'"2019-01-01 00:00:00","New York",65')
client2.send("INSERT INTO test.mt VALUES ('2019-01-01 00:00:00','Moscow',30),('2019-01-01 00:10:00', 'Moscow', 40)")
client2.expect(prompt)
client1.expect(r'"2019-01-01 00:00:00","Moscow",35,3')
client1.expect(r'"2019-01-01 00:00:00","New York",65,3')
client1.expect(r'"2019-01-01 00:00:00","Moscow",35')
client1.expect(r'"2019-01-01 00:00:00","New York",65')
client2.send("INSERT INTO test.mt VALUES ('2019-01-02 00:00:00','New York',50),('2019-01-02 00:10:00','New York',60)")
client2.expect(prompt)
client1.expect(r'"2019-01-01 00:00:00","Moscow",35,4')
client1.expect(r'"2019-01-01 00:00:00","New York",65,4')
client1.expect(r'"2019-01-02 00:00:00","New York",55,4')
client1.expect(r'"2019-01-01 00:00:00","Moscow",35')
client1.expect(r'"2019-01-01 00:00:00","New York",65')
client1.expect(r'"2019-01-02 00:00:00","New York",55')
client2.send("INSERT INTO test.mt VALUES ('2019-01-02 00:00:00','Moscow',20),('2019-01-02 00:10:00', 'Moscow', 30)")
client2.expect(prompt)
client1.expect(r'"2019-01-01 00:00:00","Moscow",35,5')
client1.expect(r'"2019-01-01 00:00:00","New York",65,5')
client1.expect(r'"2019-01-02 00:00:00","Moscow",25,5')
client1.expect(r'"2019-01-02 00:00:00","New York",55,5')
client1.expect(r'"2019-01-01 00:00:00","Moscow",35')
client1.expect(r'"2019-01-01 00:00:00","New York",65')
client1.expect(r'"2019-01-02 00:00:00","Moscow",25')
client1.expect(r'"2019-01-02 00:00:00","New York",55')
client2.send("INSERT INTO test.mt VALUES ('2019-01-02 00:03:00','New York',40),('2019-01-02 00:06:00','New York',30)")
client2.expect(prompt)
client1.expect(r'"2019-01-01 00:00:00","Moscow",35,6')
client1.expect(r'"2019-01-01 00:00:00","New York",65,6')
client1.expect(r'"2019-01-02 00:00:00","Moscow",25,6')
client1.expect(r'"2019-01-02 00:00:00","New York",45,6')
client1.expect(r'"2019-01-01 00:00:00","Moscow",35')
client1.expect(r'"2019-01-01 00:00:00","New York",65')
client1.expect(r'"2019-01-02 00:00:00","Moscow",25')
client1.expect(r'"2019-01-02 00:00:00","New York",45')
# send Ctrl-C
client1.send('\x03', eol='')
match = client1.expect('(%s)|([#\$] )' % prompt)