Closed fasmat closed 11 months ago
Merging #242 (361f66a) into develop (324aab2) will increase coverage by
0.0%
. The diff coverage is100.0%
.
@@ Coverage Diff @@
## develop #242 +/- ##
=======================================
Coverage 68.6% 68.7%
=======================================
Files 28 28
Lines 1862 1866 +4
=======================================
+ Hits 1279 1283 +4
Misses 435 435
Partials 148 148
Files | Coverage Δ | |
---|---|---|
internal/postrs/log.go | 100.0% <100.0%> (ø) |
Tests will fail to execute multiple times with
go test -count X
with the following error:The reason for this is that the callback that is set when post is initialised holds a reference to
testing.T
and running it multiple times will always use the reference from the first test run (which eventually becomes invalid).This change only allows to execute the same test multiple times (when it directly or indirectly calls
setLogCallback
) but it doesn't solve the issue that tests might still log on the wronglog
reference:Parallel test execution might only be possible by not using a global logger on
postrs
side. Until then I removedt.Parallel()
from all tests in this repo and will remove them form tests ingo-spacemesh
that involve initialization, proof generation or verification.