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 <nirro@il.ibm.com>
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")
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"))
})
})
......
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