mirror of https://github.com/status-im/consul.git
Lets the leave unit test proceed even after an EOF.
This commit is contained in:
parent
dcff5137f9
commit
585958746a
|
@ -1,6 +1,7 @@
|
|||
package api
|
||||
|
||||
import (
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"strings"
|
||||
"testing"
|
||||
|
@ -610,7 +611,9 @@ func TestAgent_Leave(t *testing.T) {
|
|||
t.Fatalf("err: %v", err)
|
||||
}
|
||||
|
||||
if err := c2.Agent().Leave(); err != nil {
|
||||
// We sometimes see an EOF response to this one, depending on timing.
|
||||
err := c2.Agent().Leave()
|
||||
if err != nil && err != io.EOF {
|
||||
t.Fatalf("err: %v", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue