commit | 6519c179bdf86e254bc95c85261bcf3506c244a8 | [log] [tgz] |
---|---|---|
author | Chalard Jean <jchalard@google.com> | Mon Jul 12 15:25:10 2021 +0900 |
committer | Chalard Jean <jchalard@google.com> | Mon Jul 12 15:30:21 2021 +0900 |
tree | f0125e76bc03573f6478c5b23e805cec38766bf1 | |
parent | 5b3795532283afe17f3673914d1902e9c84d9e20 [diff] |
Fix a flake with mocking. The hypothesis here is that some other thread is using the mock between the call to when() and the call to .thenReturn() a few lines above the failure. It's not clear this is really the reason, but using this syntax is safer anyway, so whether it fixes the issue or not this is a good change. Test: m FrameworksNetTests Change-Id: I501d2ec8e794c67a53d7c84e290e4cc63481472d