commit | 4c11582db384485c180f4d127e00d209224aae9f | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Sun Feb 21 01:09:26 2016 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Wed Mar 02 17:01:50 2016 +0900 |
tree | b566adc60dcea9acd629ac0f4421f8e26c899fd2 | |
parent | fd38423bd4fda24edaccf672e9121a5fd2935953 [diff] |
Speed up ConnectivityServiceTest. 1. Override WakeupMessage with an implementation that uses sendEmptyMessageDelayed. This allows us to replace a 6-second sleep with a 150ms wait. 2. Change waitFor()'s polling interval from 100ms to 50ms. With these changes ConnectivityServiceTest goes from ~9s to ~3s. Change-Id: Id78aab9cded90a5b17f09d7f437904e179808dd2