Skip to content

Commit

Permalink
testing: document MutateContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Jun 27, 2014
1 parent 2148034 commit bbdc472
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testing/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ func (s *DockerServer) ResetFailure(id string) {
delete(s.failures, id)
}

// MutateContainer changes the state of a container, returning an error if the
// given id does not match to any container "running" in the server.
func (s *DockerServer) MutateContainer(id string, state docker.State) error {
for _, container := range s.containers {
if container.ID == id {
Expand Down

0 comments on commit bbdc472

Please sign in to comment.