Commit 80861b1e authored by nirro's avatar nirro
Browse files

[FAB-11004] fix flakes in discovery service e2e test

Change-Id: I1fba649304c3363303aff3c21bb55d99e99ded67
Signed-off-by: default avatarnirro <>
parent d9855e92
......@@ -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")
EventuallyWithOffset(1, func() *gbytes.Buffer {
sdRunner = sd.DiscoverPeers(d.Channel, "")
err = helpers.Execute(sdRunner)
Expect(sdRunner.Err()).Should(gbytes.Say("access denied"))
return sdRunner.Err()
}, time.Minute).Should(gbytes.Say("access denied"))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment