From c06f2a50f18a3352ea98b232650fb46e2929eb91 Mon Sep 17 00:00:00 2001 From: Lauren Budorick Date: Thu, 31 Mar 2016 13:21:14 -0700 Subject: [PATCH] Fix routability now that we don't chop off a step --- features/step_definitions/routability.js | 2 +- features/testbot/loop.feature | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 | | | | | | | | |