Fixed test for lingering traffic data.

Change-Id: I7d68a518e25e17dbbaa57b12e2af4dc57b8df8d3
This commit is contained in:
Wally Yau
2016-03-07 16:16:09 -08:00
parent ee23541449
commit d7f1dbef66

View File

@@ -215,7 +215,7 @@ public class TrafficStatsTest extends AndroidTestCase {
if (deltaTxOtherPackets > 0 || deltaRxOtherPackets > 0) {
Log.i(LOG_TAG, "lingering traffic data: " + deltaTxOtherPackets + "/" + deltaRxOtherPackets);
// Make sure that not too many non-localhost packets are accounted for
assertTrue("too many non-localhost packets on the sam UID", deltaTxOtherPackets + deltaTxOtherPackets < 20);
assertTrue("too many non-localhost packets on the same UID", deltaTxOtherPackets + deltaRxOtherPackets < 20);
}
assertTrue("uidtxp: " + uidTxPacketsBefore + " -> " + uidTxPacketsAfter + " delta=" + uidTxDeltaPackets +