Skip to content

Commit 22370ee

Browse files
save
1 parent b9fd20d commit 22370ee

File tree

7 files changed

+10
-2
lines changed

7 files changed

+10
-2
lines changed

Diff for: features/options/routed/help.feature

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Feature: osrm-routed command line options: help
44
Background:
55
Given the profile "testbot"
66

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

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

49+
50+
@skip_on_routed_js
4751
Scenario: osrm-routed - Help, long
4852
When I run "osrm-routed --help"
4953
Then stderr should be empty

Diff for: features/testbot/load.feature

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Feature: Ways of loading data
3232
Then stderr should be empty
3333
And it should exit successfully
3434

35+
@skip_on_routed_js
3536
Scenario: osrm-datastore - Fail if no shared memory blocks are loaded
3637
When I run "osrm-datastore --spring-clean" with input "Y"
3738
And I try to run "osrm-routed --shared-memory=1"

Diff for: features/testbot/status.feature

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Feature: Status messages
3939
| a | c | | 400 | Impossible route between points |
4040
| b | d | | 400 | Impossible route between points |
4141

42+
@skip_on_routed_js
4243
Scenario: Malformed requests
4344
Given the node locations
4445
| node | lat | lon |

Diff for: routed-js/RouteServiceHandler.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class RouteServiceHandler extends ServiceHandler_1.ServiceHandler {
1313
if (query.waypoints) {
1414
options.waypoints = query.waypoints;
1515
}
16+
// throw Error(JSON.stringify(options));
1617
return options;
1718
}
1819
async callOSRM(options) {

Diff for: routed-js/RouteServiceHandler.ts

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export class RouteServiceHandler extends ServiceHandler {
1414
if (query.waypoints) {
1515
options.waypoints = query.waypoints;
1616
}
17+
// throw Error(JSON.stringify(options));
1718
return options;
1819
}
1920

Diff for: routed-js/ServiceHandler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class ServiceHandler {
6767
options.skip_waypoints = query.skip_waypoints;
6868
}
6969
if (query.continue_straight) {
70-
options.continue_straight = query.continue_straight === 'true';
70+
options.continue_straight = ['default', 'true'].includes(query.continue_straight);
7171
}
7272
}
7373
}

Diff for: routed-js/ServiceHandler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export abstract class ServiceHandler {
8888
}
8989

9090
if (query.continue_straight) {
91-
options.continue_straight = query.continue_straight === 'true';
91+
options.continue_straight = ['default', 'true'].includes(query.continue_straight);
9292
}
9393
}
9494
}

0 commit comments

Comments
 (0)