mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 06:15:45 +00:00
fix exec failure for gomock finish calling
Signed-off-by: pacoxu <paco.xu@daocloud.io>
This commit is contained in:
parent
8ab66dcc4e
commit
abd8acc259
@ -135,7 +135,8 @@ func TestExecInContainer(t *testing.T) {
|
|||||||
}}
|
}}
|
||||||
|
|
||||||
eh := &NativeExecHandler{}
|
eh := &NativeExecHandler{}
|
||||||
ctrl := gomock.NewController(t)
|
// to avoid the default calling Finish(). More details in https://github.com/golang/mock/pull/422/
|
||||||
|
ctrl := gomock.NewController(struct{ gomock.TestReporter }{t})
|
||||||
container := getFakeContainerJSON()
|
container := getFakeContainerJSON()
|
||||||
cmd := []string{"/bin/bash"}
|
cmd := []string{"/bin/bash"}
|
||||||
var stdin io.Reader
|
var stdin io.Reader
|
||||||
|
Loading…
Reference in New Issue
Block a user