fix: use factory method to create worker executor

This commit is contained in:
Valeriy
2019-01-03 01:50:28 +03:00
committed by Stuart Taylor
parent 871eacacd6
commit dcca74ab92
3 changed files with 9 additions and 5 deletions

View File

@@ -27,14 +27,14 @@ import {
import { challengeTypes } from '../../../../utils/challengeTypes';
import WorkerExecutor from '../utils/worker-executor';
import createWorker from '../utils/worker-executor';
import {
createMainFramer,
createTestFramer,
runTestInTestFrame
} from '../utils/frame.js';
const testWorker = new WorkerExecutor('test-evaluator');
const testWorker = createWorker('test-evaluator');
const testTimeout = 5000;
function* ExecuteChallengeSaga() {