about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-08-18 17:13:41 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-08-18 17:22:44 +0200
commit6426819b6f7af0eff516340ca24d7f8af1cc6397 (patch)
tree9c0feba9adc9a603312a5a23c39f1ba08643117d /config
parent6deb9f966eb9a280cc16428ba9324ffc15ea60a8 (diff)
Fix tests
Diffstat (limited to 'config')
-rw-r--r--config/database.yml2
-rw-r--r--config/initializers/rack-mini-profiler.rb6
2 files changed, 5 insertions, 3 deletions
diff --git a/config/database.yml b/config/database.yml
index da88c65a0..e0df97ad2 100644
--- a/config/database.yml
+++ b/config/database.yml
@@ -1,6 +1,6 @@
 default: &default
   adapter: postgresql
-  pool: 15
+  pool: 17
   timeout: 5000
   encoding: unicode
 
diff --git a/config/initializers/rack-mini-profiler.rb b/config/initializers/rack-mini-profiler.rb
index 7fd50a9af..01e8aaa15 100644
--- a/config/initializers/rack-mini-profiler.rb
+++ b/config/initializers/rack-mini-profiler.rb
@@ -1,2 +1,4 @@
-Rails.application.middleware.swap(Rack::Deflater, Rack::MiniProfiler)
-Rails.application.middleware.swap(Rack::MiniProfiler, Rack::Deflater)
+unless Rails.env == 'test'
+  Rails.application.middleware.swap(Rack::Deflater, Rack::MiniProfiler)
+  Rails.application.middleware.swap(Rack::MiniProfiler, Rack::Deflater)
+end