Skip to content

Commit

Permalink
Fix routability based tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisOSRM committed May 5, 2024
1 parent 0485a94 commit d9ba47b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions features/step_definitions/routability.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ module.exports = function () {

r.which = dir;

this.requestRoute((dir === 'forw' ? [a, b] : [b, a]), [], [], this.queryParams, (err, res, body) => {
this.requestRoute((dir === 'forw' ? [a, b] : [b, a]), [], [], this.queryParams, (err, body) => {
if (err) return callback(err);

r.query = this.query;
r.json = JSON.parse(body);
r.json = body;
r.code = r.json.code;
r.status = res.statusCode === 200 ? 'x' : null;
r.status = body.code === 'Ok' ? 'x' : null;
if (r.status) {
r.route = this.wayList(r.json.routes[0]);
r.summary = r.json.routes[0].legs.map(l => l.summary).join(',');
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": false,
"description": "The Open Source Routing Machine is a high performance routing engine written in C++ designed to run on OpenStreetMap data.",
"dependencies": {
"@mapbox/node-pre-gyp": "^1.0.10"
"@mapbox/node-pre-gyp": "^1.0.11"
},
"browserify": {
"transform": [
Expand All @@ -31,7 +31,7 @@
},
"homepage": "https://github.com/Project-OSRM/osrm-backend",
"engines": {
"node": ">=4.0.0"
"node": ">=18.0.0"
},
"devDependencies": {
"@babel/cli": "^7.18.10",
Expand Down

0 comments on commit d9ba47b

Please sign in to comment.