diff --git a/tools/cooja/contiki_tests/rime_collect_sky.csc b/tools/cooja/contiki_tests/rime_collect_sky.csc index 4a603c331..6da91f893 100644 --- a/tools/cooja/contiki_tests/rime_collect_sky.csc +++ b/tools/cooja/contiki_tests/rime_collect_sky.csc @@ -452,7 +452,10 @@ while(nodes_starting) { } /* Create sink */ -log.log("All nodes booted, creating sink at node " + id + "\n"); +sink = id; +GENERATE_MSG(1000, "continue"); +YIELD_THEN_WAIT_UNTIL(msg.equals("continue")); +log.log("All nodes booted, creating sink at node " + sink + "\n"); mote.getInterfaces().getButton().clickButton() while(true) {