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

@After teardown, sleep 100ms, tests all passed #1830

Open
5 tasks
dencesun opened this issue Nov 27, 2019 · 2 comments
Open
5 tasks

@After teardown, sleep 100ms, tests all passed #1830

dencesun opened this issue Nov 27, 2019 · 2 comments

Comments

@dencesun
Copy link

dencesun commented Nov 27, 2019

Hey,

my question is when i run all tests with idea, it will occurs random wrong, but when i insert code in
tearDown function, try { Thread.sleep(100); } catch (InterruptedException e) { e.printStackTrace(); }
all tests will pass! I don't know why, could anyone can help me explain it?

check that

  • The mockito message in the stacktrace have useful information, but it didn't help
  • The problematic code (if that's possible) is copied here;
    Note that some configuration are impossible to mock via Mockito
  • Provide versions (mockito / jdk / os / any other relevant information)
  • Provide a Short, Self Contained, Correct (Compilable), Example of the issue
    (same as any question on stackoverflow.com)
  • Read the contributing guide
@dencesun
Copy link
Author

it is really import for me, thanks

@mickroll
Copy link
Contributor

check that

The mockito message in the stacktrace have useful information, but it didn't help
The problematic code (if that's possible) is copied here;
Note that some configuration are impossible to mock via Mockito
Provide versions (mockito / jdk / os / any other relevant information)
Provide a Short, Self Contained, Correct (Compilable), Example of the issue
(same as any question on stackoverflow.com)
Read the contributing guide

you did none of that. please close this issue.

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