Skip to content

Commit

Permalink
[eclipse-kanto#51] Fixed formatting.
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Milchev [email protected]
  • Loading branch information
daniel-milchev committed Oct 25, 2023
1 parent a8da8c1 commit 624d958
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions containerm/ctr/ctrd_client_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,20 +118,20 @@ func TestConfigureRuncRuntime(t *testing.T) {
runcRuntime: types.RuntimeTypeV2runcV2,
}
tests := map[string]struct {
container *types.Container
runtime types.Runtime
container *types.Container
runtime types.Runtime
}{
"test_RuntimeTypeV1": {
container: &types.Container {
HostConfig: &types.HostConfig {
container: &types.Container{
HostConfig: &types.HostConfig{
Runtime: types.RuntimeTypeV1,
},
},
runtime: ctrdClient.runcRuntime,
},
"test_default": {
container: &types.Container {
HostConfig: &types.HostConfig {
container: &types.Container{
HostConfig: &types.HostConfig{
Runtime: types.RuntimeTypeV2kataV2,
},
},
Expand Down
10 changes: 5 additions & 5 deletions containerm/ctr/ctrd_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ func TestAttachContainer(t *testing.T) {

tests := map[string]struct {
attachConfig *streams.AttachConfig
mockExec func() error
mockExec func() error
}{
"test_containerIO_nil": {
attachConfig: attachConfig,
Expand All @@ -596,14 +596,14 @@ func TestAttachContainer(t *testing.T) {
errChan <- nil
close(errChan)
}()

mockIoMgr.EXPECT().GetIO(testCtr.ID).Return(mockIO)
mockReadCloser.EXPECT().Read(gomock.Any()).DoAndReturn(func(p []byte) (int, error) {
return -1, io.EOF
})
mockIO.EXPECT().Stream().Return(mockStream)
mockStream.EXPECT().Attach(ctx, gomock.AssignableToTypeOf(attachConfig)).Return(errChan)

return nil
},
},
Expand All @@ -615,11 +615,11 @@ func TestAttachContainer(t *testing.T) {
errChan <- nil
close(errChan)
}()

mockIoMgr.EXPECT().GetIO(testCtr.ID).Return(mockIO)
mockIO.EXPECT().Stream().Return(mockStream)
mockStream.EXPECT().Attach(ctx, gomock.AssignableToTypeOf(attachConfig)).Return(errChan)

return nil
},
},
Expand Down

0 comments on commit 624d958

Please sign in to comment.