Skip to content

Commit

Permalink
Make alternative routes tests stable by only being single-threaded
Browse files Browse the repository at this point in the history
  • Loading branch information
danpat committed Mar 1, 2018
1 parent db60855 commit 5df33e5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions features/testbot/alternative.feature
Expand Up @@ -4,6 +4,14 @@ Feature: Alternative route
Background:
Given the profile "testbot"
And a grid size of 200 meters
# Force data preparation to single-threaded to ensure consistent
# results for alternative generation during tests (alternative
# finding is highly sensitive to graph shape, which is in turn
# affected by parallelism during generation)
And the contract extra arguments "--threads 1"
And the extract extra arguments "--threads 1"
And the customize extra arguments "--threads 1"
And the partition extra arguments "--threads 1"

And the node map
"""
Expand Down
8 changes: 8 additions & 0 deletions features/testbot/alternative_loop.feature
Expand Up @@ -4,6 +4,14 @@ Feature: Alternative route
Background:
Given the profile "testbot"
Given a grid size of 200 meters
# Force data preparation to single-threaded to ensure consistent
# results for alternative generation during tests (alternative
# finding is highly sensitive to graph shape, which is in turn
# affected by parallelism during generation)
And the contract extra arguments "--threads 1"
And the extract extra arguments "--threads 1"
And the customize extra arguments "--threads 1"
And the partition extra arguments "--threads 1"

Scenario: Alternative Loop Paths
Given the node map
Expand Down

0 comments on commit 5df33e5

Please sign in to comment.