Skip to content

Commit

Permalink
Fix unit test fake dialer
Browse files Browse the repository at this point in the history
  • Loading branch information
dsimansk committed Oct 22, 2024
1 parent 6933b4b commit 88ff598
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/command/profiling/downloader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"fmt"
"io"
"io/ioutil"
"k8s.io/client-go/tools/portforward"
"net"
"net/http"
"net/http/httptest"
Expand Down Expand Up @@ -68,7 +69,7 @@ func (f *fakeDialer) Dial(protocols ...string) (httpstream.Connection, string, e
return &fakeConnection{
closed: false,
closeChan: make(chan bool),
}, "", nil
}, portforward.PortForwardProtocolV1Name, nil
}

func (f *fakeConnection) CreateStream(headers http.Header) (httpstream.Stream, error) {
Expand Down

0 comments on commit 88ff598

Please sign in to comment.