Replace DialWithOptions with Dial

No need for a dedicated function as Dial can take no options.
This commit is contained in:
Julien Laffaye
2019-04-23 14:03:05 +02:00
parent 9b5a3addd7
commit e6de3d35bf
3 changed files with 6 additions and 11 deletions

View File

@@ -292,7 +292,7 @@ func openConn(t *testing.T, addr string, options ...DialOption) (*ftpMock, *Serv
}
defer mock.Close()
c, err := DialWithOptions(mock.Addr(), options...)
c, err := Dial(mock.Addr(), options...)
if err != nil {
t.Fatal(err)
}