GetForSession now expects a *types.Session instead of a string

This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-09-20 17:29:58 -03:00
parent 495219cdec
commit 2a261094ff
14 changed files with 106 additions and 36 deletions

View File

@@ -9,8 +9,8 @@ type FactoryMock struct {
mock.Mock
}
func (m *FactoryMock) GetForSession(sessionId string) (DockerApi, error) {
args := m.Called(sessionId)
func (m *FactoryMock) GetForSession(session *types.Session) (DockerApi, error) {
args := m.Called(session)
return args.Get(0).(DockerApi), args.Error(1)
}