X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9be8a468534acaf324e9c18b831677f0ae067e60..101e3227b25c16874fa73660bfd7e338fbfe0da2:/services/api/test/integration/collections_performance_test.rb diff --git a/services/api/test/integration/collections_performance_test.rb b/services/api/test/integration/collections_performance_test.rb index f6f39fe526..c284750c97 100644 --- a/services/api/test/integration/collections_performance_test.rb +++ b/services/api/test/integration/collections_performance_test.rb @@ -1,3 +1,4 @@ +require 'safe_json' require 'test_helper' require 'helpers/manifest_examples' require 'helpers/time_block' @@ -14,7 +15,7 @@ class CollectionsApiPerformanceTest < ActionDispatch::IntegrationTest api_token: api_token(:active)) end json = time_block "JSON encode #{bigmanifest.length>>20}MiB manifest" do - Oj.dump({"manifest_text" => bigmanifest}) + SafeJSON.dump({"manifest_text" => bigmanifest}) end time_block 'create' do post '/arvados/v1/collections', {collection: json}, auth(:active) @@ -45,7 +46,7 @@ class CollectionsApiPerformanceTest < ActionDispatch::IntegrationTest bytes_per_block: 2**26, api_token: api_token(:active)) json = time_block "JSON encode #{hugemanifest.length>>20}MiB manifest" do - Oj.dump({manifest_text: hugemanifest}) + SafeJSON.dump({manifest_text: hugemanifest}) end vmpeak "post" do post '/arvados/v1/collections', {collection: json}, auth(:active)