4875: Merge branch 'master' into 4875-keepclient-test-race
[arvados.git] / apps / workbench / test / test_helper.rb
index 1e7b8eb245a9925d2d5137f03c62fd408ea3ae5d..2b480f9b3934813400a50850a46dd6367861f751 100644 (file)
@@ -267,6 +267,10 @@ class ActiveSupport::TestCase
 
   protected
   def self.reset_api_fixtures_now
+    # Never try to reset fixtures when we're just using test
+    # infrastructure to run performance/diagnostics suites.
+    return unless Rails.env == 'test'
+
     auth = api_fixture('api_client_authorizations')['admin_trustedclient']
     Thread.current[:arvados_api_token] = auth['api_token']
     ArvadosApiClient.new.api(nil, '../../database/reset', {})