Android: GleanTestLocalServer state sticks around and influences other tests
Categories
(Data Platform and Tools :: Glean: SDK, defect, P1)
Tracking
(Not tracked)
People
(Reporter: janerik, Assigned: travis_)
References
Details
Attachments
(1 file)
It looks like using GleanTestLocalServer
can cause its state to stick around across test classes, leading to intermittens because data is not received in the right local server.
We should look into whether we can better separate the state between tests.
Reporter | ||
Updated•2 years ago
|
Assignee | ||
Updated•8 months ago
|
Comment 1•7 months ago
|
||
Travis, I noticed that in this TestWatcher, we also use initialize the TestWorkManager. Could we employ the same fix to this one as we did in bug 1719905?
I can file a separate bug if that's more convenient instead of using this one.
Assignee | ||
Comment 2•7 months ago
|
||
Nope I think that fixing that along with addressing any other state issues falls under the scope of this bug, thanks for pointing it out to us, Jonathan!
Comment 3•6 months ago
|
||
Assignee | ||
Comment 4•6 months ago
|
||
Turns out I was able to reproduce the issue pretty repeatably with the glean sample app. After adding a way to await the WorkManager
executor to complete the tasks and then closing its database, the tests seemed to pass reliably. Hopefully this helps with the problems we have been seeing.
Assignee | ||
Updated•6 months ago
|
Description
•