lib/model: Don't info log repeat pull errors (#6149)
This commit is contained in:
@@ -4,6 +4,7 @@ package protocol
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
@@ -77,7 +78,7 @@ func TestClose(t *testing.T) {
|
||||
c0.Index("default", nil)
|
||||
c0.Index("default", nil)
|
||||
|
||||
if _, err := c0.Request("default", "foo", 0, 0, nil, 0, false); err == nil {
|
||||
if _, err := c0.Request(context.Background(), "default", "foo", 0, 0, nil, 0, false); err == nil {
|
||||
t.Error("Request should return an error")
|
||||
}
|
||||
}
|
||||
@@ -194,7 +195,7 @@ func TestClusterConfigFirst(t *testing.T) {
|
||||
c.ClusterConfig(ClusterConfig{})
|
||||
|
||||
done := make(chan struct{})
|
||||
if ok := c.send(&Ping{}, done); !ok {
|
||||
if ok := c.send(context.Background(), &Ping{}, done); !ok {
|
||||
t.Fatal("send ping after cluster config returned false")
|
||||
}
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user