commit | 7f9c16cd7a5099b176e3788ca779fddde12a04f0 | [log] [tgz] |
---|---|---|
author | Vishnu Nair <vishnun@google.com> | Mon Aug 20 12:58:43 2018 -0700 |
committer | Vishnu Nair <vishnun@google.com> | Tue Aug 21 01:09:25 2018 +0000 |
tree | 60cbfe0e1ba53b4c8e597c514b0e7a576b26c901 | |
parent | c5f23bfc69ea54b03bad3c469685d2031dd275d6 [diff] |
WM: Fix flaky DragDropControllerTests tests Stub Mockito spies using doReturn instead of when/then syntax. Using when/then syntax on a spied object will call the actual implementation which is probably not what we want for a stubbed function. Test failures suggest this or wrongly written multi-threaded tests may be the root cause. See: https://sponge.corp.google.com/target?id=aefd8278-1d23-458c-ab4c-56b19f24d745&target=com.android.frameworks.servicestests&searchFor=&show=FAILED&sortBy=STATUS Test: FrameworksServicesTests:com.android.server.wm.DragDropControllerTests Change-Id: Ib882f8d8602b848312631e69555a0316b9219b26