Merge "ProcNetTest: print proc path on assertion failure" am: b2ff76cdbd
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2629250 Change-Id: I9b6bbd8f21609b7f38673ca844a8e4db1ebb154f 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
2167926799
@@ -157,13 +157,13 @@ public class ProcNetTest extends DeviceTestCase implements IBuildReceiver, IDevi
|
|||||||
for (String interfaceDir : mSysctlDirs) {
|
for (String interfaceDir : mSysctlDirs) {
|
||||||
String path = IPV6_SYSCTL_DIR + "/" + interfaceDir + "/" + "router_solicitations";
|
String path = IPV6_SYSCTL_DIR + "/" + interfaceDir + "/" + "router_solicitations";
|
||||||
int value = readIntFromPath(path);
|
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";
|
path = IPV6_SYSCTL_DIR + "/" + interfaceDir + "/" + "router_solicitation_max_interval";
|
||||||
int interval = readIntFromPath(path);
|
int interval = readIntFromPath(path);
|
||||||
final int lowerBoundSec = 15 * 60;
|
final int lowerBoundSec = 15 * 60;
|
||||||
final int upperBoundSec = 60 * 60;
|
final int upperBoundSec = 60 * 60;
|
||||||
assertTrue(lowerBoundSec <= interval);
|
assertTrue(path, lowerBoundSec <= interval);
|
||||||
assertTrue(interval <= upperBoundSec);
|
assertTrue(path, interval <= upperBoundSec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user