Skip to content

Commit

Permalink
[FAB-11004] fix flakes in discovery service e2e test
Browse files Browse the repository at this point in the history
Change-Id: I1fba649304c3363303aff3c21bb55d99e99ded67
Signed-off-by: nirro <[email protected]>
  • Loading branch information
nirrozenbaum committed Jul 4, 2018
1 parent d9855e9 commit 80861b1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions integration/discovery_service/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,11 @@ var _ = Describe("DiscoveryService EndToEnd", func() {
By("remove org3 members (except admin) from channel writers")
sendChannelConfigUpdate(0, 3, d.Channel, d.Orderer, testDir)
By("try to discover peers using org3, should get access denied")
sdRunner = sd.DiscoverPeers(d.Channel, "127.0.0.1:9051")
err = helpers.Execute(sdRunner)
Expect(err).To(HaveOccurred())
Expect(sdRunner.Err()).Should(gbytes.Say("access denied"))
EventuallyWithOffset(1, func() *gbytes.Buffer {
sdRunner = sd.DiscoverPeers(d.Channel, "127.0.0.1:9051")
helpers.Execute(sdRunner)
return sdRunner.Err()
}, time.Minute).Should(gbytes.Say("access denied"))
})
})

Expand Down

0 comments on commit 80861b1

Please sign in to comment.