Create a new addTarget function on the runtime which populates the targets list as well as the executable targets list.

This commit is contained in:
Karishma Chadha 2019-01-14 11:48:11 -05:00
parent fbee37e915
commit 59a865ef47
7 changed files with 21 additions and 24 deletions

View file

@ -54,9 +54,8 @@ test('#760 - broadcastAndWait', t => {
const tgt = new Target(rt, b);
tgt.isStage = true;
tgt.createVariable('testBroadcastID', 'message', Variable.BROADCAST_MESSAGE_TYPE);
// Need to add to both runtime.targets as well as runtime.executableTargets here
rt.targets.push(tgt);
rt.executableTargets.push(tgt);
rt.addTarget(tgt);
let th = rt._pushThread('broadcastAndWaitBlock', t);
const util = new BlockUtility();