Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
SiarheiFedartsou committed Oct 22, 2022
1 parent b9fd20d commit 22370ee
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions features/options/routed/help.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Feature: osrm-routed command line options: help
Background:
Given the profile "testbot"

@skip_on_routed_js
Scenario: osrm-routed - Help should be shown when no options are passed
When I run "osrm-routed"
Then stderr should be empty
Expand All @@ -24,6 +25,7 @@ Feature: osrm-routed command line options: help
And stdout should contain "--max-matching-size"
And it should exit successfully

@skip_on_routed_js
Scenario: osrm-routed - Help, short
When I run "osrm-routed -h"
Then stderr should be empty
Expand All @@ -44,6 +46,8 @@ Feature: osrm-routed command line options: help
And stdout should contain "--max-matching-size"
And it should exit successfully


@skip_on_routed_js
Scenario: osrm-routed - Help, long
When I run "osrm-routed --help"
Then stderr should be empty
Expand Down
1 change: 1 addition & 0 deletions features/testbot/load.feature
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Feature: Ways of loading data
Then stderr should be empty
And it should exit successfully

@skip_on_routed_js
Scenario: osrm-datastore - Fail if no shared memory blocks are loaded
When I run "osrm-datastore --spring-clean" with input "Y"
And I try to run "osrm-routed --shared-memory=1"
Expand Down
1 change: 1 addition & 0 deletions features/testbot/status.feature
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Feature: Status messages
| a | c | | 400 | Impossible route between points |
| b | d | | 400 | Impossible route between points |

@skip_on_routed_js
Scenario: Malformed requests
Given the node locations
| node | lat | lon |
Expand Down
1 change: 1 addition & 0 deletions routed-js/RouteServiceHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class RouteServiceHandler extends ServiceHandler_1.ServiceHandler {
if (query.waypoints) {
options.waypoints = query.waypoints;
}
// throw Error(JSON.stringify(options));
return options;
}
async callOSRM(options) {
Expand Down
1 change: 1 addition & 0 deletions routed-js/RouteServiceHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export class RouteServiceHandler extends ServiceHandler {
if (query.waypoints) {
options.waypoints = query.waypoints;
}
// throw Error(JSON.stringify(options));
return options;
}

Expand Down
2 changes: 1 addition & 1 deletion routed-js/ServiceHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ServiceHandler {
options.skip_waypoints = query.skip_waypoints;
}
if (query.continue_straight) {
options.continue_straight = query.continue_straight === 'true';
options.continue_straight = ['default', 'true'].includes(query.continue_straight);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion routed-js/ServiceHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export abstract class ServiceHandler {
}

if (query.continue_straight) {
options.continue_straight = query.continue_straight === 'true';
options.continue_straight = ['default', 'true'].includes(query.continue_straight);
}
}
}

0 comments on commit 22370ee

Please sign in to comment.