Skip to content

Commit

Permalink
fix: should notify all goroutine channel by close
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvz committed Mar 30, 2023
1 parent 0aa42e6 commit cda91f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (t *DynamicallyProvisionedRestartDriverTest) Run(client clientset.Interface
t.RestartDriverFunc()

// restart completed, notify all goroutine to continue checking
restartCompleted <- struct{}{}
close(restartCompleted)

// wait for cleanup finish
wg.Wait()
Expand Down

0 comments on commit cda91f8

Please sign in to comment.