diff options
author | Michael Plass <mplass@google.com> | 2018-02-20 09:26:16 -0800 |
---|---|---|
committer | Michael Plass <mplass@google.com> | 2018-02-26 09:47:36 -0800 |
commit | 836a66aaa196390e5d142fa40adbea295182ac61 (patch) | |
tree | 320044f8ae1dfdd74f5e42938e66a625c39aec32 /tests | |
parent | cf59643a1cdbcab677abe2f4ba2d38c275c59219 (diff) |
[WifiScoreReport] Decrease dumpsys limit, note netid
We don't often need 12 hours of screen-on logging; decrease to 3 hours.
Add a column containing the NetworkAgent netId to make it easier to
match up with other bug report sections.
Bug: 73127862
Test: Unit tests
Test: Manually check dumpsys output
Change-Id: I1d22e4a1183dcf3648b10a06b3cc298f20c6f85c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiScoreReportTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiScoreReportTest.java b/tests/wifitests/src/com/android/server/wifi/WifiScoreReportTest.java index da2d4d9f7..029d87a13 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiScoreReportTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiScoreReportTest.java @@ -265,7 +265,7 @@ public class WifiScoreReportTest { */ @Test public void testDataLoggingLimit() throws Exception { - for (int i = 0; i < 14500; i++) { + for (int i = 0; i < 3620; i++) { mWifiInfo.setRssi(-65 + i % 20); mWifiInfo.setLinkSpeed(300); mWifiInfo.setFrequency(5220); @@ -276,6 +276,6 @@ public class WifiScoreReportTest { mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); } mWifiScoreReport.dump(null, mPrintWriter, null); - verify(mPrintWriter, atMost(14401)).println(anyString()); + verify(mPrintWriter, atMost(3601)).println(anyString()); } } |