Skip to content

Commit

Permalink
integration: handle "io.EOF" in "TestV3ElectionObserve"
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed Feb 7, 2018
1 parent 0343da9 commit 04d7f90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integration/v3election_grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package integration
import (
"context"
"fmt"
"io"
"testing"
"time"

Expand Down Expand Up @@ -108,6 +109,9 @@ func TestV3ElectionObserve(t *testing.T) {
for i := 0; i < 10; i++ {
resp, rerr := s.Recv()
if rerr != nil {
if rerr == io.EOF {
continue
}
t.Fatal(rerr)
}
respV := 0
Expand Down

0 comments on commit 04d7f90

Please sign in to comment.