@@ -50,7 +50,7 @@ def kill_process(pid, force=False):
5050 subprocess .run (command , shell = True )
5151
5252
53- def assert_wait (condition , max_wait_time = 15 .0 , retry_interval = 0.05 ):
53+ def assert_wait (condition , max_wait_time = 20 .0 , retry_interval = 0.05 ):
5454 max_time = time .time () + max_wait_time
5555 while time .time () < max_time :
5656 if condition ():
@@ -344,9 +344,9 @@ def test_runner():
344344 assert_wait (lambda : TEST_TABLE_NAME in ch .get_tables ())
345345 assert_wait (lambda : len (ch .select (TEST_TABLE_NAME )) == 2 )
346346
347- mysql .execute (f"INSERT INTO { TEST_TABLE_NAME } (name, age, coordinate) VALUES ('Filipp ', 50, POINT(10.0, 20.0));" , commit = True )
347+ mysql .execute (f"INSERT INTO { TEST_TABLE_NAME } (name, age, coordinate) VALUES ('Xeishfru32 ', 50, POINT(10.0, 20.0));" , commit = True )
348348 assert_wait (lambda : len (ch .select (TEST_TABLE_NAME )) == 3 )
349- assert_wait (lambda : ch .select (TEST_TABLE_NAME , where = "name='Filipp '" )[0 ]['age' ] == 50 )
349+ assert_wait (lambda : ch .select (TEST_TABLE_NAME , where = "name='Xeishfru32 '" )[0 ]['age' ] == 50 )
350350
351351 # Test for restarting dead processes
352352 binlog_repl_pid = get_binlog_replicator_pid (cfg )
@@ -868,13 +868,14 @@ def test_different_types_2():
868868 test1 bit(1),
869869 test2 point,
870870 test3 binary(16),
871+ test4 set('1','2','3','4','5','6','7'),
871872 PRIMARY KEY (id)
872873);
873874 ''' )
874875
875876 mysql .execute (
876- f"INSERT INTO { TEST_TABLE_NAME } (test1, test2, test3) VALUES "
877- f"(0, POINT(10.0, 20.0), 'azaza');" ,
877+ f"INSERT INTO { TEST_TABLE_NAME } (test1, test2, test3, test4 ) VALUES "
878+ f"(0, POINT(10.0, 20.0), 'azaza', '1,3,5' );" ,
878879 commit = True ,
879880 )
880881
@@ -891,17 +892,21 @@ def test_different_types_2():
891892 assert_wait (lambda : len (ch .select (TEST_TABLE_NAME )) == 1 )
892893
893894 mysql .execute (
894- f"INSERT INTO { TEST_TABLE_NAME } (test1, test2) VALUES "
895- f"(1, POINT(15.0, 14.0));" ,
895+ f"INSERT INTO { TEST_TABLE_NAME } (test1, test2, test4 ) VALUES "
896+ f"(1, POINT(15.0, 14.0), '2,4,5' );" ,
896897 commit = True ,
897898 )
899+
898900 assert_wait (lambda : len (ch .select (TEST_TABLE_NAME )) == 2 )
899901 assert_wait (lambda : len (ch .select (TEST_TABLE_NAME , 'test1=True' )) == 1 )
900902
901903 assert ch .select (TEST_TABLE_NAME , 'test1=True' )[0 ]['test2' ]['x' ] == 15.0
902904 assert ch .select (TEST_TABLE_NAME , 'test1=False' )[0 ]['test2' ]['y' ] == 20.0
903905 assert ch .select (TEST_TABLE_NAME , 'test1=False' )[0 ]['test3' ] == 'azaza\x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 '
904906
907+ assert ch .select (TEST_TABLE_NAME , 'test1=True' )[0 ]['test4' ] == '2,4,5'
908+ assert ch .select (TEST_TABLE_NAME , 'test1=False' )[0 ]['test4' ] == '1,3,5'
909+
905910 mysql .execute (
906911 f"INSERT INTO { TEST_TABLE_NAME } (test1, test2) VALUES "
907912 f"(0, NULL);" ,
0 commit comments