Skip to content

Commit

Permalink
Merge "Fix intermittent test failure in acl e2e test" into release-1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
yacovm authored and Gerrit Code Review committed Jan 15, 2019
2 parents d885dec + 3e6641d commit 8f9e8c8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions integration/nwo/configblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,12 @@ func UpdateConfig(n *Network, orderer *Orderer, channel string, current, updated
Eventually(sess, n.EventuallyTimeout).Should(gexec.Exit(0))
Expect(sess.Err).To(gbytes.Say("Successfully submitted channel update"))

// wait for the block to be committed
ccb := func() uint64 { return CurrentConfigBlockNumber(n, submitter, orderer, channel) }
Eventually(ccb, n.EventuallyTimeout).Should(BeNumerically(">", currentBlockNumber))
// wait for the block to be committed to all peers that
// have joined the channel
for _, peer := range n.PeersWithChannel(channel) {
ccb := func() uint64 { return CurrentConfigBlockNumber(n, peer, orderer, channel) }
Eventually(ccb, n.EventuallyTimeout).Should(BeNumerically(">", currentBlockNumber))
}
}

// UpdateOrdererConfig computes, signs, and submits a configuration update which requires orderers signature and waits
Expand Down

0 comments on commit 8f9e8c8

Please sign in to comment.