Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does library unregisters IdlingResource? #21

Closed
IevgenGoltsev opened this issue Sep 29, 2019 · 4 comments
Closed

Does library unregisters IdlingResource? #21

IevgenGoltsev opened this issue Sep 29, 2019 · 4 comments

Comments

@IevgenGoltsev
Copy link

Hello,

so in RxIdler I see Espresso.registerIdlingResources call.
But I didn't see Espresso.unregisterIdlingResources or IdlingRegistry.getInstance().unregister.

Should it be that way or I should unregister Rx idling resource manually?

@JakeWharton
Copy link
Collaborator

JakeWharton commented Sep 29, 2019 via email

@IevgenGoltsev
Copy link
Author

Well, it is stated in documentation:
Unregister idling resources after you're done using them.

@JakeWharton
Copy link
Collaborator

JakeWharton commented Sep 29, 2019 via email

@IevgenGoltsev
Copy link
Author

I'm just trying to follow recommendations.
What if there is a case if one test needs Rx idling resource and another don't?

Anyway, I can put this init in a junit suite and solve a problem for all tests :)
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants