@@ -64,9 +64,6 @@ async def test_select(
6464) -> None :
6565 """Select handles all data types properly."""
6666 with connection .cursor () as c :
67- assert (
68- await c .execute (f"SET advanced_mode=1" ) == - 1
69- ), "Invalid set statment row count"
7067 # For timestamptz test
7168 assert (
7269 await c .execute (f"SET time_zone={ timezone_name } " ) == - 1
@@ -101,21 +98,18 @@ async def test_select(
10198 )
10299
103100
104- @mark .skip ( "Don't have a good way to test this anymore. FIR-16038" )
105- @mark .timeout (timeout = 400 )
101+ @mark .slow
102+ @mark .timeout (timeout = 550 )
106103async def test_long_query (
107104 connection : Connection ,
108105) -> None :
109106 """AWS ALB TCP timeout set to 350; make sure we handle the keepalive correctly."""
110107 with connection .cursor () as c :
111108 await c .execute (
112- "SET advanced_mode = 1; SET use_standard_sql = 0;"
113- "SELECT sleepEachRow(1) from numbers(360)" ,
109+ "SELECT checksum(*) FROM GENERATE_SERIES(1, 200000000000)" , # approx 6m runtime
114110 )
115- await c .nextset ()
116- await c .nextset ()
117111 data = await c .fetchall ()
118- assert len (data ) == 360 , "Invalid data size returned by fetchall"
112+ assert len (data ) == 1 , "Invalid data size returned by fetchall"
119113
120114
121115async def test_drop_create (connection : Connection ) -> None :
@@ -400,17 +394,17 @@ async def test_bytea_roundtrip(
400394) -> None :
401395 """Inserted and than selected bytea value doesn't get corrupted."""
402396 with connection .cursor () as c :
403- await c .execute ("DROP TABLE IF EXISTS test_bytea_roundtrip " )
397+ await c .execute ("DROP TABLE IF EXISTS test_bytea_roundtrip_2 " )
404398 await c .execute (
405- "CREATE FACT TABLE test_bytea_roundtrip (id int, b bytea) primary index id"
399+ "CREATE FACT TABLE test_bytea_roundtrip_2 (id int, b bytea) primary index id"
406400 )
407401
408402 data = "bytea_123\n \t ヽ༼ຈل͜ຈ༽ノ"
409403
410404 await c .execute (
411- "INSERT INTO test_bytea_roundtrip VALUES (1, ?)" , (Binary (data ),)
405+ "INSERT INTO test_bytea_roundtrip_2 VALUES (1, ?)" , (Binary (data ),)
412406 )
413- await c .execute ("SELECT b FROM test_bytea_roundtrip " )
407+ await c .execute ("SELECT b FROM test_bytea_roundtrip_2 " )
414408
415409 bytes_data = (await c .fetchone ())[0 ]
416410
0 commit comments