From: Tom Hughes Date: Wed, 6 Jun 2018 13:28:30 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/1895' X-Git-Tag: live~3074 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/5f31e8d99d1a2d6e044b1607a8c31b00bd269342?hp=a516d13d33704b8a60dede034b14e7ea1ef138c9 Merge remote-tracking branch 'upstream/pull/1895' --- diff --git a/test/controllers/changeset_controller_test.rb b/test/controllers/changeset_controller_test.rb index 38d6ac162..e8fde7c92 100644 --- a/test/controllers/changeset_controller_test.rb +++ b/test/controllers/changeset_controller_test.rb @@ -557,7 +557,7 @@ CHANGESET end def test_repeated_changeset_create - 30.times do + 3.times do basic_authorization create(:user).email, "test" # create a temporary changeset diff --git a/test/controllers/old_node_controller_test.rb b/test/controllers/old_node_controller_test.rb index e08fbb65e..1f8743141 100644 --- a/test/controllers/old_node_controller_test.rb +++ b/test/controllers/old_node_controller_test.rb @@ -55,7 +55,7 @@ class OldNodeControllerTest < ActionController::TestCase versions[xml_node["version"]] = xml_doc.to_s # randomly move the node about - 20.times do + 3.times do # move the node somewhere else xml_node["lat"] = precision(rand * 180 - 90).to_s xml_node["lon"] = precision(rand * 360 - 180).to_s @@ -70,7 +70,7 @@ class OldNodeControllerTest < ActionController::TestCase end # add a bunch of random tags - 30.times do + 3.times do xml_tag = XML::Node.new("tag") xml_tag["k"] = random_string xml_tag["v"] = random_string @@ -105,7 +105,7 @@ class OldNodeControllerTest < ActionController::TestCase versions[xml_node["version"]] = xml_doc.to_s # randomly move the node about - 20.times do + 3.times do # move the node somewhere else xml_node["lat"] = precision(rand * 180 - 90).to_s xml_node["lon"] = precision(rand * 360 - 180).to_s @@ -120,7 +120,7 @@ class OldNodeControllerTest < ActionController::TestCase end # add a bunch of random tags - 30.times do + 3.times do xml_tag = XML::Node.new("tag") xml_tag["k"] = random_string xml_tag["v"] = random_string