Skip to content

Commit fb974f0

Browse files
committed
fix(test): Fix tests failing on second run by always eager loading.
1 parent 6da9a21 commit fb974f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/environments/test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
# this is usually not necessary, and can slow down your test suite. However, it's
1414
# recommended that you enable it in continuous integration systems to ensure eager
1515
# loading is working properly before deploying your code.
16-
config.eager_load = ENV["CI"].present?
16+
# config.eager_load = ENV["CI"].present?
17+
config.eager_load = true
1718

1819
# Configure public file server for tests with cache-control for performance.
1920
config.public_file_server.headers = { "cache-control" => "public, max-age=3600" }

0 commit comments

Comments
 (0)