Skip to content

Commit

Permalink
Merge pull request #3414 from balopat/fix_broken_wait_logic
Browse files Browse the repository at this point in the history
fix wait logic in TestWaitForPodSucceeded
  • Loading branch information
balopat authored Dec 20, 2019
2 parents 25f77f1 + 9f8dea4 commit 923cdb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/skaffold/kubernetes/wait_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestWaitForPodSucceeded(t *testing.T) {

errChan := make(chan error)
go func() {
errChan <- WaitForPodSucceeded(context.TODO(), fakePods, "", 50*time.Millisecond)
errChan <- WaitForPodSucceeded(context.TODO(), fakePods, "", 10*time.Millisecond)
}()

for _, phase := range test.phases {
Expand All @@ -71,7 +71,7 @@ func TestWaitForPodSucceeded(t *testing.T) {
Phase: phase,
},
})
time.Sleep(10 * time.Millisecond)
time.Sleep(1 * time.Millisecond)
}
err := <-errChan

Expand Down

0 comments on commit 923cdb6

Please sign in to comment.