Closed prashantv closed 4 years ago
Merging #36 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #36 +/- ##
=======================================
Coverage 95.03% 95.03%
=======================================
Files 4 4
Lines 141 141
=======================================
Hits 134 134
Misses 4 4
Partials 3 3
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 227bd74...5254a20. Read the comment docs.
Dealing with non-determinism of schedulers is not fun, basically had to add retries to the stack.All()
call till we get a "stable" state.
There's a fair amount of similarity between the logic between the two tests (besides the retry limit). Any reason not to share the logic?
There's a fair amount of similarity between the logic between the two tests (besides the retry limit). Any reason not to share the logic?
Agree, wanted to share the logic but it requires a bunch of moving around code (new test-only package, making the tests a separate _test
package, etc). The movement around didn't seem worth it so kept it simple.
Some tests assume that stack.All() will give a stable set of goroutines: that any background goroutines from the test framework/previous tests have run till they're blocked.
Add verification that stack.All() returns a "stable" set of stacks before running these tests.