Merge "ProcNetTest: print proc path on assertion failure" am: b2ff76cdbd am: 2167926799
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2629250 Change-Id: If153ea739926c585f0b668af76bd4b05d508e2b7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
committed by
Automerger Merge Worker
commit
75c8acf428
@@ -157,13 +157,13 @@ public class ProcNetTest extends DeviceTestCase implements IBuildReceiver, IDevi
|
||||
for (String interfaceDir : mSysctlDirs) {
|
||||
String path = IPV6_SYSCTL_DIR + "/" + interfaceDir + "/" + "router_solicitations";
|
||||
int value = readIntFromPath(path);
|
||||
assertEquals(IPV6_WIFI_ROUTER_SOLICITATIONS, value);
|
||||
assertEquals(path, IPV6_WIFI_ROUTER_SOLICITATIONS, value);
|
||||
path = IPV6_SYSCTL_DIR + "/" + interfaceDir + "/" + "router_solicitation_max_interval";
|
||||
int interval = readIntFromPath(path);
|
||||
final int lowerBoundSec = 15 * 60;
|
||||
final int upperBoundSec = 60 * 60;
|
||||
assertTrue(lowerBoundSec <= interval);
|
||||
assertTrue(interval <= upperBoundSec);
|
||||
assertTrue(path, lowerBoundSec <= interval);
|
||||
assertTrue(path, interval <= upperBoundSec);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user