This commit is contained in:
Pierre Fersing 2016-02-29 22:02:33 +01:00
parent 0e3a8d8205
commit 580c8c09a5
2 changed files with 4 additions and 1 deletions

View File

@ -34,6 +34,9 @@ func (t *transportMock) RoundTrip(r *http.Request) (*http.Response, error) {
return res, nil
}
func (t *transportMock) CancelRequest(_ *http.Request) {
}
func TestElasticsearch(t *testing.T) {
es := NewElasticsearch()
es.Servers = []string{"http://example.com:9200"}

View File

@ -92,7 +92,7 @@ func TestMysqlDNSAddTimeout(t *testing.T) {
}{
{
"",
"/?timeout=5",
"/?timeout=5s",
},
{
"tcp(192.168.1.1:3306)/",