Merge branch '19269-all-users-writable'
[arvados.git] / apps / workbench / test / test_helper.rb
index 69cf43b1a2fd52c04b89edebbded03d8493b1323..2e8ead94cdb5e46f905f8872ec1d7b84ddec1f87 100644 (file)
@@ -158,7 +158,7 @@ class ActiveSupport::TestCase
     }
   end
   def json_response
-    Oj.load(@response.body)
+    Oj.safe_load(@response.body)
   end
 end
 
@@ -360,8 +360,9 @@ module Minitest
           raise
         rescue Exception => e
           n += 1
-          raise if n > 2
+          raise if n > 2 || e.is_a?(Skip)
           STDERR.puts "Test failed, retrying (##{n})"
+          ActiveSupport::TestCase.reset_api_fixtures_now
           retry
         end
       rescue *PASSTHROUGH_EXCEPTIONS