fix: change test-evaluator hash to refresh cache

This commit is contained in:
Oliver Eyton-Williams
2020-01-13 16:09:01 +01:00
committed by Kristofer Koishigawa
parent bb5a9e8153
commit fd72bd40f9

View File

@ -70,13 +70,11 @@ self.onmessage = async e => {
try { try {
// Logging is proxyed after the build to catch console.log messages // Logging is proxyed after the build to catch console.log messages
// generated during testing. // generated during testing.
testResult = eval(` testResult = eval(`${e.data.build}
${e.data.build} __utils.flushLogs();
__utils.flushLogs(); __userCodeWasExecuted = true;
__userCodeWasExecuted = true; __utils.toggleProxyLogger(true);
__utils.toggleProxyLogger(true); ${e.data.testString}`);
${e.data.testString}
`);
} catch (err) { } catch (err) {
if (__userCodeWasExecuted) { if (__userCodeWasExecuted) {
// rethrow error, since test failed. // rethrow error, since test failed.