Commit 95483dd8 authored by Artem Barger's avatar Artem Barger Committed by Gerrit Code Review
Browse files

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

parents ef599422 80861b1e
......@@ -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, "")
err = helpers.Execute(sdRunner)
Expect(sdRunner.Err()).Should(gbytes.Say("access denied"))
EventuallyWithOffset(1, func() *gbytes.Buffer {
sdRunner = sd.DiscoverPeers(d.Channel, "")
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