Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
zistvan-public
StreamChain Prototype
Commits
95483dd8
Commit
95483dd8
authored
Jul 05, 2018
by
Artem Barger
Committed by
Gerrit Code Review
Jul 05, 2018
Browse files
Merge "[FAB-11004] fix flakes in discovery service e2e test"
parents
ef599422
80861b1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
integration/discovery_service/e2e_test.go
View file @
95483dd8
...
...
@@ -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"
))
})
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment