Skip to content

Commit

Permalink
fix: Set a default priorityThresh
Browse files Browse the repository at this point in the history
If not `priorityThresh` was set for an individual test case _or_ its
test suite, the `priorityThresh` value was set to undefined.
  • Loading branch information
orangejulius committed May 5, 2020
1 parent 1dc5ff6 commit 6b307c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/eval_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function printRequestErrorMessage(testCase, response) {

function createContext(testSuite, locations) {
return {
priorityThresh: testSuite.priorityThresh,
priorityThresh: testSuite.priorityThresh || 10,
distanceThresh: testSuite.distanceThresh,
locations: locations,
weights: testSuite.weights,
Expand Down

0 comments on commit 6b307c4

Please sign in to comment.