Skip to content
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

Merged
merged 1 commit into from
Mar 5, 2018
Merged

fix pubsub pub reading stdin args #4770

merged 1 commit into from
Mar 5, 2018

Conversation

whyrusleeping
Copy link
Member

License: MIT
Signed-off-by: Jeromy [email protected]

@ghost ghost assigned whyrusleeping Mar 5, 2018
@ghost ghost added the status/in-progress In progress label Mar 5, 2018
@whyrusleeping
Copy link
Member Author

Test failures in bitswap... @Stebalien any idea there?

@whyrusleeping
Copy link
Member Author

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]>
'

test_expect_success "wait until ipfs pubsub sub is ready to do work" '
go-sleep 500ms
Copy link
Member

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?

Copy link
Member

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.

Copy link
Member Author

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

@whyrusleeping
Copy link
Member Author

@victorbjelkholm this fixes #4719

@whyrusleeping whyrusleeping merged commit a544026 into master Mar 5, 2018
@whyrusleeping whyrusleeping deleted the fix/pubsub-stdin branch March 5, 2018 20:23
@ghost ghost removed the status/in-progress In progress label Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants