Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

removed Thread.sleep from LifecycleWatcher tests, using awaitility and DateProvider #392

Merged
merged 2 commits into from
May 7, 2020
Merged

removed Thread.sleep from LifecycleWatcher tests, using awaitility and DateProvider #392

merged 2 commits into from
May 7, 2020

Conversation

marandaneto
Copy link
Contributor

@marandaneto marandaneto commented May 6, 2020

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

removed Thread.sleep from LifecycleWatcher tests, using awaitility and DateProvider

💡 Motivation and Context

Thread sleep was slowing down tests and also tests using currentTimeMillis were not deterministic.

@Ignore test should be working now

💚 How did you test it?

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • All tests passing

🔮 Next steps

@marandaneto marandaneto requested a review from bruno-garcia as a code owner May 6, 2020 16:39
@marandaneto marandaneto changed the title removed Thread sleep from LifecycleWatcher tests, using awaitility and DateProvider removed Thread.sleep from LifecycleWatcher tests, using awaitility and DateProvider May 6, 2020
Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good improvement. Just a note on possible data race

@marandaneto marandaneto merged commit 9979618 into getsentry:master May 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants