Skip to content

Commit

Permalink
Fix test to accept more realistic rssi values
Browse files Browse the repository at this point in the history
  • Loading branch information
vladamatena committed May 26, 2015
1 parent ca7c647 commit 3369015
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private L2Packet getIPSourcedL2Packet(int dataId) {
private L2Packet getMANETSourcedL2Packet(int dataId) {
// Mock received info
L1Packet l1Packet = Mockito.mock(L1Packet.class);
l1Packet.receivedInfo = new MANETReceivedInfo(MANETBroadcastAddress.BROADCAST, 0.5);
l1Packet.receivedInfo = new MANETReceivedInfo(MANETBroadcastAddress.BROADCAST, RebroadcastStrategy.RSSI_100m);
L2ReceivedInfo receivedInfo = new L2ReceivedInfo(Arrays.asList(l1Packet), (byte) 0, dataId);

return getL2Packet(dataId, receivedInfo);
Expand Down

0 comments on commit 3369015

Please sign in to comment.