-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
bitswap_test: make racy test less racy #4109
Conversation
(in an effort to make CI reliable...) |
As usual, the failures are unrelated... (99 failures of tests on CI, 99 failures of tests, take one down, pass it around, 9001 failures of tests on CI). |
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.
Very good change, it will take us a while to catch them all.
We should also object tests that depend on flat timing in future.
YES! Also, a rule that all CI failures must be investigated/reported, even if they look spurious. Always having to re-run CI a few times to get a pass is time consuming (and dangerous). |
Speaking of which... the travis test failure was #4062. |
we should add a more generic |
Need to:
|
@Stebalien update here? |
No change. I'll do this now... (it's just really tedious). |
Blocked on #4091 apparently (I need to update go-libp2p which now pulls in go-libp2p-circuit). |
Note that #4091 is still in circuit-relay-1.1.2, it will need to update to circuit-relay-1.1.3 when libp2p is updated. |
c93b52b
to
8d5f3f4
Compare
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
fixes #4108 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
@@ -38,7 +38,7 @@ func TestInitialization(t *testing.T) { | |||
for i, c := range good { | |||
r := &repo.Mock{ | |||
C: *c, | |||
D: testutil.ThreadSafeCloserMapDatastore(), | |||
D: ds2.ThreadSafeCloserMapDatastore(), |
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.
Note: I moved this function from the vendored testutil library to datastore2.
Thank you for this. |
Thank you a lot for this fix. |
bitswap_test: make racy test less racy This commit was moved from ipfs/kubo@b6eb085
fixes #4108