Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
gsquared94 committed Sep 28, 2020
1 parent 9285542 commit 95beb46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/skaffold/build/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ func (a *artifactChanModel) markFailure() {
<-a.concurrencySem
}
func (a *artifactChanModel) waitForDependencies(ctx context.Context) error {
defer func() {
a.concurrencySem <- true
}()
for _, depStatus := range a.requiredArtifactStatuses {
// wait for required builds to complete
select {
Expand All @@ -63,7 +66,6 @@ func (a *artifactChanModel) waitForDependencies(ctx context.Context) error {
case <-depStatus.success:
}
}
a.concurrencySem <- true
return nil
}

Expand Down

0 comments on commit 95beb46

Please sign in to comment.