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 {
// Logging is proxyed after the build to catch console.log messages
// generated during testing.
testResult = eval(`
${e.data.build}
testResult = eval(`${e.data.build}
__utils.flushLogs();
__userCodeWasExecuted = true;
__utils.toggleProxyLogger(true);
${e.data.testString}
`);
${e.data.testString}`);
} catch (err) {
if (__userCodeWasExecuted) {
// rethrow error, since test failed.