From 08cb6d1f636a68389b61b4e370692bf16ffddf92 Mon Sep 17 00:00:00 2001 From: Jeff Miccolis Date: Wed, 30 Mar 2016 09:45:48 -0400 Subject: [PATCH] Fix timestamp handling, restores testbot/matching test --- features/step_definitions/matching.js | 2 +- features/support/route.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/matching.js b/features/step_definitions/matching.js index 5ab745d6e..1b770d76e 100644 --- a/features/step_definitions/matching.js +++ b/features/step_definitions/matching.js @@ -158,7 +158,7 @@ module.exports = function () { trace.push(node); } if (row.timestamps) { - timestamps = row.timestamps.split(' ').filter(s => !!s).map(t => parseInt(t)); + timestamps = row.timestamps.split(' ').filter(s => !!s).map(t => parseInt(t, 10)); } got.trace = row.trace; this.requestMatching(trace, timestamps, params, afterRequest); diff --git a/features/support/route.js b/features/support/route.js index 5168e619d..cea93664d 100644 --- a/features/support/route.js +++ b/features/support/route.js @@ -110,7 +110,7 @@ module.exports = function () { params.coordinates = encodeWaypoints(waypoints); if (timestamps.length) { - params.timestamps = timestamps.join(','); + params.timestamps = timestamps.join(';'); } return this.requestPath('match', params, callback);