File tree 7 files changed +10
-2
lines changed
7 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ Feature: osrm-routed command line options: help
4
4
Background :
5
5
Given the profile "testbot"
6
6
7
+ @skip_on_routed_js
7
8
Scenario : osrm-routed - Help should be shown when no options are passed
8
9
When I run "osrm-routed"
9
10
Then stderr should be empty
@@ -24,6 +25,7 @@ Feature: osrm-routed command line options: help
24
25
And stdout should contain "--max-matching-size"
25
26
And it should exit successfully
26
27
28
+ @skip_on_routed_js
27
29
Scenario : osrm-routed - Help, short
28
30
When I run "osrm-routed -h"
29
31
Then stderr should be empty
@@ -44,6 +46,8 @@ Feature: osrm-routed command line options: help
44
46
And stdout should contain "--max-matching-size"
45
47
And it should exit successfully
46
48
49
+
50
+ @skip_on_routed_js
47
51
Scenario : osrm-routed - Help, long
48
52
When I run "osrm-routed --help"
49
53
Then stderr should be empty
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ Feature: Ways of loading data
32
32
Then stderr should be empty
33
33
And it should exit successfully
34
34
35
+ @skip_on_routed_js
35
36
Scenario : osrm-datastore - Fail if no shared memory blocks are loaded
36
37
When I run "osrm-datastore --spring-clean" with input "Y"
37
38
And I try to run "osrm-routed --shared-memory=1"
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ Feature: Status messages
39
39
| a | c | | 400 | Impossible route between points |
40
40
| b | d | | 400 | Impossible route between points |
41
41
42
+ @skip_on_routed_js
42
43
Scenario : Malformed requests
43
44
Given the node locations
44
45
| node | lat | lon |
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ class RouteServiceHandler extends ServiceHandler_1.ServiceHandler {
13
13
if ( query . waypoints ) {
14
14
options . waypoints = query . waypoints ;
15
15
}
16
+ // throw Error(JSON.stringify(options));
16
17
return options ;
17
18
}
18
19
async callOSRM ( options ) {
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export class RouteServiceHandler extends ServiceHandler {
14
14
if ( query . waypoints ) {
15
15
options . waypoints = query . waypoints ;
16
16
}
17
+ // throw Error(JSON.stringify(options));
17
18
return options ;
18
19
}
19
20
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class ServiceHandler {
67
67
options . skip_waypoints = query . skip_waypoints ;
68
68
}
69
69
if ( query . continue_straight ) {
70
- options . continue_straight = query . continue_straight === 'true' ;
70
+ options . continue_straight = [ 'default' , 'true' ] . includes ( query . continue_straight ) ;
71
71
}
72
72
}
73
73
}
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export abstract class ServiceHandler {
88
88
}
89
89
90
90
if ( query . continue_straight ) {
91
- options . continue_straight = query . continue_straight === 'true' ;
91
+ options . continue_straight = [ 'default' , 'true' ] . includes ( query . continue_straight ) ;
92
92
}
93
93
}
94
94
}
You can’t perform that action at this time.
0 commit comments