Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Fix flaky TestNetworkCounters tests #496

Merged
merged 1 commit into from
Jun 4, 2021

Conversation

hannahhoward
Copy link
Contributor

Goals

Fix TestNetworkCounters flakiness
part of fixing ipfs/boxo#86

Implemenation

The problem is just a race in counting messages, and I've dealt with that by moving the counting to immediately before the call that advances the test. I don't think it's relevant to Bitswap execution otherwise.

count message received before callback so that the count is always accurate at the time of counting
@hannahhoward hannahhoward changed the base branch from master to web3-bot/sync June 3, 2021 20:43
Copy link
Contributor

@dirkmc dirkmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@hannahhoward hannahhoward merged commit a80565d into web3-bot/sync Jun 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants