Skip to content

Commit 3a42323

Browse files
Tsu Chiang ChuangAndroid (Google) Code Review
authored andcommitted
Merge "Force an update before we poll for the data."
2 parents e4bbb6a + db2990f commit 3a42323

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/DataIdleTest/src/com/android/tests/dataidle/DataIdleTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public void testMobile() {
7272
*/
7373
private void fetchStats(NetworkTemplate template) {
7474
try {
75+
mStatsService.forceUpdate();
7576
NetworkStats stats = mStatsService.getSummaryForAllUid(template, Long.MIN_VALUE,
7677
Long.MAX_VALUE, false);
7778
reportStats(stats);

0 commit comments

Comments
 (0)