nes-proj/tests/13-ieee802154/js/02-tsch-flush-nbr-queue.js
Yasuyuki Tanaka a5a0505d54 TSCH: remove tsch-packet-create test
This test ended its role when tsch_packet_create_eb() and
tsch_packet_create_eack() were refined.
2017-09-13 14:38:05 +09:00

28 lines
426 B
JavaScript

TIMEOUT(10000, log.testFailed());
var failed = false;
var done = 0;
while(done < sim.getMotes().length) {
YIELD();
log.log(time + " " + "node-" + id + " "+ msg + "\n");
if(msg.contains("=check-me=") == false) {
continue;
}
if(msg.contains("FAILED")) {
failed = true;
}
if(msg.contains("DONE")) {
done++;
}
}
if(failed) {
log.testFailed();
}
log.testOK();