Populate executable targets when runtime.targets is populated so that scripts don't run before they are supposed to (e.g. before targets are done getting installed).

This commit is contained in:
Karishma Chadha 2019-01-11 14:52:34 -05:00
parent 522b5e1a8e
commit fbee37e915
9 changed files with 58 additions and 16 deletions

View file

@ -54,7 +54,9 @@ 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);
let th = rt._pushThread('broadcastAndWaitBlock', t);
const util = new BlockUtility();