Skip to content
Snippets Groups Projects
Commit 25b5fb8a authored by amaehrle's avatar amaehrle
Browse files

fix tests failing due to addition of BitSet

parent 5f342a28
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -286,9 +286,13 @@ public class MulticastDeliveryReportTest extends AbstractReportTest {
this.clock.setTime(AFTER_WARM_UP_TIME);
// Create 1-to-1 message.
DTNHost h1 = utils.createHost();
// as messages that are already carried by the recipients router,
// are not sent anymore (see the class MessageRouter), we need a second host as the recipient,
// as the sender always already has the message.
DTNHost h2 = utils.createHost();
h1.createNewMessage(new Message(h1,h1,TEST_MESSAGE_ID,0));
transferMessage(TEST_MESSAGE_ID,h1,h1);
transferMessage(TEST_MESSAGE_ID,h1,h2);
testReportIgnoresMessage();
}
......@@ -298,9 +302,13 @@ public class MulticastDeliveryReportTest extends AbstractReportTest {
this.clock.setTime(AFTER_WARM_UP_TIME);
// Create broadcast message.
DTNHost h1 = utils.createHost();
// as messages that are already carried by the recipients router,
// are not sent anymore (see the class MessageRouter), we need a second host as the recipient,
// as the sender always already has the message.
DTNHost h2 = utils.createHost();
h1.createNewMessage(new BroadcastMessage(h1,TEST_MESSAGE_ID,0));
transferMessage(TEST_MESSAGE_ID,h1,h1);
transferMessage(TEST_MESSAGE_ID,h1,h2);
testReportIgnoresMessage();
}
......
  • Contributor
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment