diff --git a/features/step_definitions/routability.js b/features/step_definitions/routability.js index 9f3a9f16d..1ef8643ed 100644 --- a/features/step_definitions/routability.js +++ b/features/step_definitions/routability.js @@ -72,7 +72,7 @@ module.exports = function () { if (r.status) { r.route = this.wayList(r.json.routes[0]); - if (r.route === util.format('w%d', i)) { + if (r.route.split(',')[0] === util.format('w%d', i)) { r.time = r.json.routes[0].duration; r.distance = r.json.routes[0].distance; r.speed = r.time > 0 ? parseInt(3.6 * r.distance / r.time) : null; diff --git a/features/testbot/loop.feature b/features/testbot/loop.feature index 4ee9fc526..675b0c43e 100644 --- a/features/testbot/loop.feature +++ b/features/testbot/loop.feature @@ -4,7 +4,7 @@ Feature: Avoid weird loops caused by rounding errors Background: Given the profile "testbot" - Scenario: Weired sidestreet loops + Scenario: Weird sidestreet loops Given the node map | a | 1 | b | 2 | c | 3 | d | | | | | | | | |