Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alvaroaleman committed Jun 21, 2020
1 parent 0928844 commit 4da76a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/machine/v1beta1/machineset_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ func TestStorageMachineSet(t *testing.T) {
done := make(chan struct{})
stopped := make(chan struct{})
go func() {
defer close(stopped)
gs.Expect(mgr.Start(done)).To(Succeed())
close(stopped)
}()
defer func() {
close(done)
Expand Down
6 changes: 3 additions & 3 deletions pkg/apis/machine/v1beta1/machineset_webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,8 @@ func TestMachineSetUpdate(t *testing.T) {
done := make(chan struct{})
stopped := make(chan struct{})
go func() {
defer close(stopped)
gs.Expect(mgr.Start(done)).To(Succeed())
close(stopped)
}()
defer func() {
close(done)
Expand Down Expand Up @@ -694,8 +694,8 @@ func TestCPMachineSetDelete(t *testing.T) {
done := make(chan struct{})
stopped := make(chan struct{})
go func() {
defer close(stopped)
gs.Expect(mgr.Start(done)).To(Succeed())
close(stopped)
}()
defer func() {
close(done)
Expand Down Expand Up @@ -876,8 +876,8 @@ func TestCPMachineSetUpdate(t *testing.T) {
done := make(chan struct{})
stopped := make(chan struct{})
go func() {
defer close(stopped)
gs.Expect(mgr.Start(done)).To(Succeed())
close(stopped)
}()
defer func() {
close(done)
Expand Down

0 comments on commit 4da76a6

Please sign in to comment.