File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
pgduck_server/tests/pytests Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ def test_multiple_server_instances_on_duckdb_file_path_socket(clean_socket_path)
162162
163163 start_time = time .time ()
164164 found_error = False
165- while (time .time () - start_time ) < 1 : # loop at most 1 seconds
165+ while (time .time () - start_time ) < 20 : # loop at most 20 seconds
166166 try :
167167 # Check if there is any output indicating the server is ready
168168 line = output_queue_2 .get_nowait ()
@@ -182,10 +182,11 @@ def test_multiple_server_instances_on_duckdb_file_path_socket(clean_socket_path)
182182 assert has_duckdb_created_file ("/tmp/data1.db" )
183183
184184 # Clean up
185- server1 .terminate ()
186- server1 .wait ()
187- server2 .terminate ()
188- server2 .wait ()
185+ try :
186+ _ , _ = server1 .communicate (timeout = 2 )
187+ except subprocess .TimeoutExpired :
188+ server1 .kill ()
189+ _ , _ = server1 .communicate ()
189190
190191
191192def test_two_servers_different_ports (clean_socket_path ):
You can’t perform that action at this time.
0 commit comments