Leadership: Remove flaky test.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2015-06-12 18:48:53 -07:00
parent e0f2da36b2
commit 6ce921fde7
1 changed files with 0 additions and 7 deletions

View File

@ -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)
}