From fd72bd40f9ee775c413aa1ce6e1478fe05bb63f6 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Mon, 13 Jan 2020 16:09:01 +0100 Subject: [PATCH] fix: change test-evaluator hash to refresh cache --- client/src/client/workers/test-evaluator.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/client/src/client/workers/test-evaluator.js b/client/src/client/workers/test-evaluator.js index f08af9fe2f..99452977e5 100644 --- a/client/src/client/workers/test-evaluator.js +++ b/client/src/client/workers/test-evaluator.js @@ -70,13 +70,11 @@ self.onmessage = async e => { try { // Logging is proxyed after the build to catch console.log messages // generated during testing. - testResult = eval(` - ${e.data.build} - __utils.flushLogs(); - __userCodeWasExecuted = true; - __utils.toggleProxyLogger(true); - ${e.data.testString} - `); + testResult = eval(`${e.data.build} +__utils.flushLogs(); +__userCodeWasExecuted = true; +__utils.toggleProxyLogger(true); +${e.data.testString}`); } catch (err) { if (__userCodeWasExecuted) { // rethrow error, since test failed.