[ARVADOS] updated: 0b3873cf0f05ec1e08c1cee81aed68c2421f158f

git at public.curoverse.com git at public.curoverse.com
Fri Oct 17 08:35:10 EDT 2014


Summary of changes:
 apps/workbench/test/test_helper.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

       via  0b3873cf0f05ec1e08c1cee81aed68c2421f158f (commit)
      from  69e4d608045afea775b77d1f41afddf0bdfcf5c6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 0b3873cf0f05ec1e08c1cee81aed68c2421f158f
Author: Brett Smith <brett at curoverse.com>
Date:   Fri Oct 17 08:36:54 2014 -0400

    4189: Diagnostics suite doesn't try to clear Rails cache.
    
    Refs #4189.

diff --git a/apps/workbench/test/test_helper.rb b/apps/workbench/test/test_helper.rb
index 01a79bb..1a07e43 100644
--- a/apps/workbench/test/test_helper.rb
+++ b/apps/workbench/test/test_helper.rb
@@ -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 /^[^.]*$/

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list