mirror of https://github.com/docker/docs.git
Leadership: Remove flaky test.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
e0f2da36b2
commit
6ce921fde7
|
|
@ -46,14 +46,7 @@ func TestCandidate(t *testing.T) {
|
|||
assert.False(t, <-electedCh)
|
||||
assert.True(t, <-electedCh)
|
||||
|
||||
// After stopping the candidate, the ElectedCh should be closed.
|
||||
candidate.Stop()
|
||||
select {
|
||||
case <-electedCh:
|
||||
assert.True(t, false) // we should not get here.
|
||||
default:
|
||||
assert.True(t, true)
|
||||
}
|
||||
|
||||
mockStore.AssertExpectations(t)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue