-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Test refactoring #798
Test refactoring #798
Conversation
Codecov ReportBase: 93.32% // Head: 93.33% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## development #798 +/- ##
============================================
Coverage 93.32% 93.33%
============================================
Files 42 42
Lines 4841 4845 +4
============================================
+ Hits 4518 4522 +4
Misses 255 255
Partials 68 68
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
95bbe6c
to
a7a6d44
Compare
rebased on latest development branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like how SatisfyAll
makes the unit tests way more readable.
dns.Type
constants 👍
defer
➡ DeferCleanup
👍
Some small improvements:
make tests more readable:
dns.Type(dns.TypeA)
withA
constantremove TTL check from ´BeDNSRecord´ and use dedicated
HaveTTL
which allows to use also "<=" comparison and make TTL assertion optional (without "hack" with 0 TTL before)some small improvement on "Eventually" calls
After removing of sleep in a test, a race condition in cache is occurred. This was also fixed by a separate commit.