generated from ipfs/ipfs-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bitswap/client: fix PeerResponseTrackerProbabilityOneKnownOneUnknownPeer
This was a bug in the implementation where it would incorrectly assume that 0 and 1 block received are equivalent scores. I think this test used to not be flaky because prior to go1.20 `math/rand` would initialise to a zero state and the zero state would deterministically pass even tho this was 50/50 odds. It also unmark all some tests in bitswap/client/internal/session non flaky since they are not flaky.
- Loading branch information
Showing
4 changed files
with
2 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters