mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
e2e: deflake events
Handle streamCh channel being closed.
This commit is contained in:
@@ -218,7 +218,10 @@ func (tc *EventsTest) TestStartIndex(f *framework.F) {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
case event := <-streamCh:
|
||||
case event, ok := <-streamCh:
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
if event.IsHeartbeat() {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user