commit | 28dcdb7c3b9ce1d5d1f344b06c80847f8d165b5b | [log] [tgz] |
---|---|---|
author | Fan Zhang <zhfan@google.com> | Wed May 17 15:37:03 2017 -0700 |
committer | Fan Zhang <zhfan@google.com> | Wed May 17 22:46:27 2017 +0000 |
tree | dac13020213c40394a8a9cb11bbad4421ef69e55 | |
parent | c439202da9af6d8ac1980e60b8b49ac01ad30bcf [diff] |
Fix robolectric test failure Default UserManager caches instance across entire test suite, so test becomes flakey depending on the order they are run. Using a a ShadowUserManager without the cache ensures each test class gets a UserManager with clean state. Change-Id: Ia54f6a3259859add5a1e5d0101829497fb985ab1 Fix: 38393235 Test: make RunSettingsRoboTests