Browse Source

Updated msg to be able identify that its expected

pull/4571/head
Volodymyr Babak 5 years ago
parent
commit
e9419d7f99
  1. 2
      application/src/test/java/org/thingsboard/server/edge/imitator/EdgeImitator.java

2
application/src/test/java/org/thingsboard/server/edge/imitator/EdgeImitator.java

@ -216,7 +216,7 @@ public class EdgeImitator {
for (EntityDataProto entityData : downlinkMsg.getEntityDataList()) { for (EntityDataProto entityData : downlinkMsg.getEntityDataList()) {
if (randomFailuresOnTimeseriesDownlink) { if (randomFailuresOnTimeseriesDownlink) {
if (getRandomBoolean()) { if (getRandomBoolean()) {
result.add(Futures.immediateFailedFuture(new RuntimeException("Random failure"))); result.add(Futures.immediateFailedFuture(new RuntimeException("Random failure. This is expected error for edge test")));
} else { } else {
result.add(saveDownlinkMsg(entityData)); result.add(saveDownlinkMsg(entityData));
} }

Loading…
Cancel
Save