4054: minor test update
[arvados.git] / apps / workbench / test / test_helper.rb
index 01a79bbe779aba2ae7fe22af4997f051d95d8d03..1a07e43be1fb51c5fe3c9a7796121ea684a9407c 100644 (file)
@@ -40,7 +40,8 @@ class ActiveSupport::TestCase
     Thread.current[:arvados_api_token] = nil
     Thread.current[:user] = nil
     Thread.current[:reader_tokens] = nil
-    Rails.cache.clear
+    # Diagnostics suite doesn't run a server, so there's no cache to clear.
+    Rails.cache.clear unless (Rails.env == "diagnostics")
     # Restore configuration settings changed during tests
     $application_config.each do |k,v|
       if k.match /^[^.]*$/