Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
For stability, increase sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
duck8823 committed Nov 3, 2018
1 parent 3374922 commit 55fc27c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/context/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestWithTimeout(t *testing.T) {
defer cancel()

go func() {
time.Sleep(10 * time.Millisecond)
time.Sleep(30 * time.Millisecond)
cancel()
}()

Expand Down
2 changes: 1 addition & 1 deletion application/service/runner/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ func TestRunnerImpl_Run_NonNormal(t *testing.T) {
Run(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()).
Times(1).
DoAndReturn(func(_, _, _, _ interface{}) (docker.ContainerID, docker.Log, error) {
time.Sleep(3 * time.Second)
time.Sleep(10 * time.Second)
return docker.ContainerID("container_id"), &runner.MockJobLog{}, nil
})
mockDocker.EXPECT().
Expand Down

0 comments on commit 55fc27c

Please sign in to comment.