Skip to content

Commit

Permalink
[#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 19, 2023
1 parent e28f185 commit bc20e96
Showing 1 changed file with 5 additions and 5 deletions.
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 bc20e96

Please sign in to comment.