Skip to content

Commit

Permalink
[FAB-17601] Fix CI flake due to unexpected pvtdata reconciliation
Browse files Browse the repository at this point in the history
In private data dissemination test, a test flake may happen if
unexpected pvtdata reconciliation is triggered (timing issue)
so that additional peers receive the private data.

Signed-off-by: Wenjian Qiao <[email protected]>
  • Loading branch information
wenjianqiao authored and sykesm committed Mar 24, 2020
1 parent a4b2ab1 commit 9644d43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration/pvtdata/pvtdata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ var _ bool = Describe("PrivateData", func() {
testCleanup(network, process)
})

Describe("Dissemination when pulling is disabled", func() {
Describe("Dissemination when pulling and reconciliation are disabled", func() {
BeforeEach(func() {
By("setting up the network")
network = initThreeOrgsSetup(true)

By("setting the pull retry threshold to 0 on all peers")
// set pull retry threshold to 0
By("setting the pull retry threshold to 0 and disabling reconciliation on all peers")
for _, p := range network.Peers {
core := network.ReadPeerConfig(p)
core.Peer.Gossip.PvtData.PullRetryThreshold = 0
core.Peer.Gossip.PvtData.ReconciliationEnabled = false
network.WritePeerConfig(p, core)
}

Expand Down

0 comments on commit 9644d43

Please sign in to comment.