test(session): Speed up some tests around dead worker cleanup

This removes or reduces the time that is waited in a number of tests by
allowing the grace period time be a configuration option on the
connection repository.
This commit is contained in:
Timothy Messier committed 2022-03-15 13:51:15 -04:00
1 parent 79670180a7
commit 9aa2d4cd84
8 files changed
+72 -52

No files matched your search

+1 -1
View File
@@ -310,7 +310,7 @@ where
dead_servers (server_id, last_update_time) as (
select private_id, update_time
from server
where update_time < wt_sub_seconds_from_now(?)
where update_time < wt_sub_seconds_from_now(@grace_period_seconds)
),
closed_connections (connection_id, server_id) as (
update session_connection