Is there any way i can re-use an existing workmanager for application instances created by multiple tests?.
i have multiple unit tests, my first test runs succesfully, next time onwards i face below error.
W/eSync: Can not re-initialize work manager, Robolectric problem?
[DEBUG] [TestEventLogger] java.lang.IllegalStateException:
WorkManager is already initialized. Did you try to initialize it
manually without disabling WorkManagerInitializer? See
WorkManager#initialize(Context, Configuration) or the class level
Javadoc for more information.
so can i use re-use an existing
workmanager (created during first unit test) for application instances
created by multiple tests?
Thanks and Regards,