mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +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{}
|
||||
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()
|
||||
cmd := []string{"/bin/bash"}
|
||||
var stdin io.Reader
|
||||
|
Loading…
Reference in New Issue
Block a user