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

feat(mock): reliable notifications #836

Merged
merged 1 commit into from
Mar 10, 2020
Merged

Conversation

Stebalien
Copy link
Member

  • Export StreamComplement/ConnComplement convenience functions.
  • Make the TestNotifications test pass reliably, even when we have a bunch of streams (identify, etc.).
  • Make the mock net order disconnect events after connect events.
  • Make closing one side of a connection actually close both sides.
  • Make it possible to extract a mock stream's complement.
  • Fire remote events at the same time as the local events.

I'm hoping this will put an end to spurious test failures due to mocknet issues.
Just kidding, that'll never happen.

* Export StreamComplement/ConnComplement convenience functions.
* Make the TestNotifications test pass reliably, even when we have a bunch of
streams (identify, etc.).
* Make the mock net order disconnect events after connect events.
* Make closing one side of a connection actually close both sides.
* Make it possible to extract a mock stream's complement.
* Fire remote events at the same time as the local events.
@Stebalien
Copy link
Member Author

All the bitswap related tests that use this are passing. I'm going to just merge this as it just improves testing code and it's not worth anyone's time to review.

@Stebalien Stebalien merged commit 9ad477b into master Mar 10, 2020
@Stebalien Stebalien deleted the feat/reliable-mock-notif branch March 10, 2020 00:31
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.

1 participant