mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
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
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
@ -610,7 +611,9 @@ func TestAgent_Leave(t *testing.T) {
|
|||||||
t.Fatalf("err: %v", err)
|
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)
|
t.Fatalf("err: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user