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 23, 2024
1 parent 5be1072 commit 3fade85
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 @@ -31,6 +31,7 @@ import (
"gotest.tools/v3/assert"
"k8s.io/apimachinery/pkg/util/httpstream"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/portforward"
"k8s.io/client-go/transport/spdy"
)

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 3fade85

Please sign in to comment.