diff --git a/lib/pact_broker/config/runtime_configuration_database_methods.rb b/lib/pact_broker/config/runtime_configuration_database_methods.rb index 2bc499e7a..d22d21924 100644 --- a/lib/pact_broker/config/runtime_configuration_database_methods.rb +++ b/lib/pact_broker/config/runtime_configuration_database_methods.rb @@ -82,7 +82,7 @@ def postgres? private :postgres? def driver_options - if postgres? + if postgres? && database_statement_timeout { options: "-c statement_timeout=#{database_statement_timeout}s" } end end