Skip to content

Commit

Permalink
dockerclient: set mock expectations count
Browse files Browse the repository at this point in the history
  • Loading branch information
adnxn committed Dec 21, 2018
1 parent 40e9849 commit e9c4be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/dockerclient/dockerapi/docker_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ func TestContainerEventsStreamError(t *testing.T) {

eventsChan := make(chan events.Message, dockerEventBufferSize)
errChan := make(chan error)
mockDockerSDK.EXPECT().Events(gomock.Any(), gomock.Any()).Return(eventsChan, errChan).Times(2)
mockDockerSDK.EXPECT().Events(gomock.Any(), gomock.Any()).Return(eventsChan, errChan).MinTimes(1)

dockerEvents, err := client.ContainerEvents(context.TODO())
require.NoError(t, err, "Could not get container events")
Expand Down

0 comments on commit e9c4be7

Please sign in to comment.