mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-13 18:29:07 +02:00
making linter happy
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
@@ -58,7 +58,7 @@ func TestAdapterHandlingConnectionClosures(t *testing.T) {
|
||||
go httpServer.Serve(l) //nolint:errcheck
|
||||
t.Cleanup(func() { httpServer.Close() })
|
||||
|
||||
clientconn, _, err := websocket.Dial(context.Background(), "http://whatever",
|
||||
clientconn, _, err := websocket.Dial(context.Background(), "http://whatever", //nolint:bodyclose
|
||||
&websocket.DialOptions{HTTPClient: &http.Client{
|
||||
Transport: &http.Transport{
|
||||
DialContext: func(_ context.Context, _, _ string) (net.Conn, error) {
|
||||
@@ -134,12 +134,13 @@ func TestAdapterHandlingHttpConnection_NoHeadersSent(t *testing.T) {
|
||||
}
|
||||
go httpServer.Serve(l) //nolint:errcheck
|
||||
|
||||
clientconn, _, err := websocket.Dial(context.Background(), "http://whatever", &websocket.DialOptions{HTTPClient: &http.Client{
|
||||
Transport: &http.Transport{
|
||||
DialContext: func(_ context.Context, _, _ string) (net.Conn, error) {
|
||||
return net.Dial("unix", serversock)
|
||||
},
|
||||
}}})
|
||||
clientconn, _, err := websocket.Dial(context.Background(), "http://whatever", //nolint:bodyclose
|
||||
&websocket.DialOptions{HTTPClient: &http.Client{
|
||||
Transport: &http.Transport{
|
||||
DialContext: func(_ context.Context, _, _ string) (net.Conn, error) {
|
||||
return net.Dial("unix", serversock)
|
||||
},
|
||||
}}})
|
||||
assert.NoError(t, err)
|
||||
|
||||
h2client := &http.Client{
|
||||
|
||||
Reference in New Issue
Block a user