From 6b307c4cf821ff3554415c5f8f055a241eeecb97 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Tue, 5 May 2020 09:47:26 -0700 Subject: [PATCH] fix: Set a default `priorityThresh` If not `priorityThresh` was set for an individual test case _or_ its test suite, the `priorityThresh` value was set to undefined. --- lib/eval_tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eval_tests.js b/lib/eval_tests.js index 8efd91c..780af23 100644 --- a/lib/eval_tests.js +++ b/lib/eval_tests.js @@ -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,