Skip to content

Commit

Permalink
Add function for Mock in persona tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewavery committed Feb 6, 2018
1 parent ccdc726 commit bb2c10c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/apiservers/engine/backends/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ func (m *MockContainerProxy) BindTask(op trace.Operation, handle string, eid str
return "", nil
}

func (m *MockContainerProxy) WaitTask(op trace.Operation, cid string, cname string, id string) error {
return nil
}

func (m *MockContainerProxy) Wait(vc *viccontainer.VicContainer, timeout time.Duration) (*types.ContainerState, error) {
dockerState := &types.ContainerState{ExitCode: 0}
return dockerState, nil
Expand Down

0 comments on commit bb2c10c

Please sign in to comment.