From ace7474428ecc8a3bb22cde6909426a45ccfc7ea Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Mon, 22 Apr 2024 15:40:37 +0700 Subject: [PATCH] fix(web): fixes pred-text unit test instability --- .../unit_tests/in_browser/cases/worker-trie-integration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/predictive-text/unit_tests/in_browser/cases/worker-trie-integration.js b/common/predictive-text/unit_tests/in_browser/cases/worker-trie-integration.js index c068daf8f1a..4d7d34acdf4 100644 --- a/common/predictive-text/unit_tests/in_browser/cases/worker-trie-integration.js +++ b/common/predictive-text/unit_tests/in_browser/cases/worker-trie-integration.js @@ -60,7 +60,7 @@ describe('LMLayer using the trie model', function () { // // https://community.software.sil.org/t/search-term-to-key-in-lexical-model-not-working-both-ways-by-default/3133 it('should use the default searchTermToKey()', function () { - var lmLayer = new LMLayer(helpers.defaultCapabilities, Worker.constructInstance()); + var lmLayer = new LMLayer(helpers.defaultCapabilities, Worker.constructInstance(), /* testMode */ true); return lmLayer.loadModel( // We need to provide an absolute path since the worker is based within a blob.