From d1e9ba7711f612487f0cf1f53a4237712945db7d Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Tue, 15 Dec 2020 11:02:53 +1100 Subject: [PATCH] test: add statement_timeout to test db connection --- lib/db.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/db.rb b/lib/db.rb index ef1c1676b..a8274b698 100644 --- a/lib/db.rb +++ b/lib/db.rb @@ -33,6 +33,7 @@ def self.connect db_credentials con = Sequel.connect(db_credentials.merge(:logger => logger, :pool_class => Sequel::ThreadedConnectionPool, :encoding => 'utf8')) con.extension(:connection_validator) con.extension(:pagination) + con.extension(:statement_timeout) con.extend_datasets do def any? !empty?