-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Add support for a default_radius flag #6575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
2f40a47
0761107
5e7069c
25841dc
da5a673
fb4bf24
b672c82
f5fddc1
0c95630
981b7ac
8bcfeff
2ddd217
81ee7ae
4ecbf0e
a4ae955
c221922
aa2a3c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,6 +112,18 @@ test('constructor: throws if dataset_name is not a string', function(assert) { | |
assert.throws(function() { new OSRM({dataset_name: "unsued_name___", shared_memory: true}); }, /Could not find shared memory region/, 'Does not accept wrong name'); | ||
}); | ||
|
||
test('constructor: takes a default_bearing_radius argument', function(assert) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is some weird "Too many open files" error in these tests https://github.com/Project-OSRM/osrm-backend/actions/runs/4467036487/jobs/7850020794?pr=6575 I assume that probably it is something which we already had, but didn't know about: each test creates new There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://github.com/nodejs/node-addon-api/blob/main/doc/object_wrap.md
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, I've commented those tests out for now. |
||
assert.plan(1); | ||
var osrm = new OSRM({default_bearing_radius: 1}); | ||
assert.ok(osrm); | ||
}); | ||
|
||
test('constructor: throws if default_bearing_radius is not a number', function(assert) { | ||
assert.plan(2); | ||
assert.throws(function() { new OSRM({default_bearing_radius: 'abc'}); }, /default_bearing_radius must be an integral number/, 'Does not accept string'); | ||
assert.ok(new OSRM({default_bearing_radius: 1}), 'Does accept number'); | ||
}); | ||
|
||
test('constructor: parses custom limits', function(assert) { | ||
assert.plan(1); | ||
var osrm = new OSRM({ | ||
|
Uh oh!
There was an error while loading. Please reload this page.