]> git.openstreetmap.org Git - rails.git/commit
Speed up tests by making fewer random changes
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 6 Jun 2018 05:54:09 +0000 (13:54 +0800)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 6 Jun 2018 05:54:09 +0000 (13:54 +0800)
commitd336523738d75ccb5dd9680c44649f8cfb3b31a1
tree27dc4ac3589d2ab1328d4f8a6f14b2d5d8b1f413
parent892c30aa8ca64d1a3e9ec9232b9ddb23bd3321d4
Speed up tests by making fewer random changes

The old_node_controller#test_version in particular was slow, since
it saves a huge number of tags when adding a tag 30 times over. Since
the tests are random and not based on the number of iterations, this
reduces the iteration counts.
test/controllers/changeset_controller_test.rb
test/controllers/old_node_controller_test.rb