-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
fix pubsub pub reading stdin args #4770
Conversation
Test failures in bitswap... @Stebalien any idea there? |
It looks like we just need a sleep here: https://github.com/ipfs/go-ipfs/blob/master/exchange/bitswap/session_test.go#L315 Cancelling a context is always an async operation, expecting it to affect something else immediately afterwards is a risky bet. In reality, we shouldnt use a context to govern this, we should have an explicit close method, but that will require more refactoring. |
License: MIT Signed-off-by: Jeromy <[email protected]>
3696f6d
to
dd40a5a
Compare
' | ||
|
||
test_expect_success "wait until ipfs pubsub sub is ready to do work" ' | ||
go-sleep 500ms |
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.
Should we poll here for something (to be sure that pubsub is ready) or not?
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 see that we do it in other places so LGTM either way.
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.
Ideally, but thats pretty difficult to do. For now, this is good enough
@victorbjelkholm this fixes #4719 |
License: MIT
Signed-off-by: Jeromy [email protected]