Merge remote-tracking branch 'upstream/pull/1895'
This commit is contained in:
commit
5f31e8d99d
2 changed files with 5 additions and 5 deletions
|
@ -557,7 +557,7 @@ CHANGESET
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_repeated_changeset_create
|
def test_repeated_changeset_create
|
||||||
30.times do
|
3.times do
|
||||||
basic_authorization create(:user).email, "test"
|
basic_authorization create(:user).email, "test"
|
||||||
|
|
||||||
# create a temporary changeset
|
# create a temporary changeset
|
||||||
|
|
|
@ -55,7 +55,7 @@ class OldNodeControllerTest < ActionController::TestCase
|
||||||
versions[xml_node["version"]] = xml_doc.to_s
|
versions[xml_node["version"]] = xml_doc.to_s
|
||||||
|
|
||||||
# randomly move the node about
|
# randomly move the node about
|
||||||
20.times do
|
3.times do
|
||||||
# move the node somewhere else
|
# move the node somewhere else
|
||||||
xml_node["lat"] = precision(rand * 180 - 90).to_s
|
xml_node["lat"] = precision(rand * 180 - 90).to_s
|
||||||
xml_node["lon"] = precision(rand * 360 - 180).to_s
|
xml_node["lon"] = precision(rand * 360 - 180).to_s
|
||||||
|
@ -70,7 +70,7 @@ class OldNodeControllerTest < ActionController::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
# add a bunch of random tags
|
# add a bunch of random tags
|
||||||
30.times do
|
3.times do
|
||||||
xml_tag = XML::Node.new("tag")
|
xml_tag = XML::Node.new("tag")
|
||||||
xml_tag["k"] = random_string
|
xml_tag["k"] = random_string
|
||||||
xml_tag["v"] = random_string
|
xml_tag["v"] = random_string
|
||||||
|
@ -105,7 +105,7 @@ class OldNodeControllerTest < ActionController::TestCase
|
||||||
versions[xml_node["version"]] = xml_doc.to_s
|
versions[xml_node["version"]] = xml_doc.to_s
|
||||||
|
|
||||||
# randomly move the node about
|
# randomly move the node about
|
||||||
20.times do
|
3.times do
|
||||||
# move the node somewhere else
|
# move the node somewhere else
|
||||||
xml_node["lat"] = precision(rand * 180 - 90).to_s
|
xml_node["lat"] = precision(rand * 180 - 90).to_s
|
||||||
xml_node["lon"] = precision(rand * 360 - 180).to_s
|
xml_node["lon"] = precision(rand * 360 - 180).to_s
|
||||||
|
@ -120,7 +120,7 @@ class OldNodeControllerTest < ActionController::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
# add a bunch of random tags
|
# add a bunch of random tags
|
||||||
30.times do
|
3.times do
|
||||||
xml_tag = XML::Node.new("tag")
|
xml_tag = XML::Node.new("tag")
|
||||||
xml_tag["k"] = random_string
|
xml_tag["k"] = random_string
|
||||||
xml_tag["v"] = random_string
|
xml_tag["v"] = random_string
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue