X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1346cc5072843797a8091cd67a0eb75499a97642..037e4cabc957defee57e4f639045691602f0bce6:/services/api/test/unit/log_test.rb diff --git a/services/api/test/unit/log_test.rb b/services/api/test/unit/log_test.rb index 8a878ada91..016a0e4eb4 100644 --- a/services/api/test/unit/log_test.rb +++ b/services/api/test/unit/log_test.rb @@ -282,7 +282,7 @@ class LogTest < ActiveSupport::TestCase end test "non-empty configuration.unlogged_attributes" do - Rails.configuration.AuditLogs.UnloggedAttributes = ["manifest_text"] + Rails.configuration.AuditLogs.UnloggedAttributes = {"manifest_text"=>{}} txt = ". acbd18db4cc2f85cedef654fccc4a4d8+3 0:3:foo\n" act_as_system_user do @@ -297,7 +297,7 @@ class LogTest < ActiveSupport::TestCase end test "empty configuration.unlogged_attributes" do - Rails.configuration.AuditLogs.UnloggedAttributes = [] + Rails.configuration.AuditLogs.UnloggedAttributes = {} txt = ". acbd18db4cc2f85cedef654fccc4a4d8+3 0:3:foo\n" act_as_system_user do @@ -378,19 +378,6 @@ class LogTest < ActiveSupport::TestCase sleep 0.1 end assert_operator remaining_audit_logs.count, :<, initial_log_count - ensure - # The test framework rolls back our transactions, but that - # doesn't undo the deletes we did from separate threads. - ActiveRecord::Base.connection.exec_query 'ROLLBACK' - Thread.new do - begin - dc = DatabaseController.new - dc.define_singleton_method :render do |*args| end - dc.reset - ensure - ActiveRecord::Base.connection.close - end - end.join end end end