Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit bb188c0

Browse files
committed
fix linter error
1 parent e5635ed commit bb188c0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

controllers/kubeadmconfig_controller_test.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,10 +676,16 @@ func TestReconcileIfJoinNodesAndControlPlaneIsReady(t *testing.T) {
676676

677677
// ...until the infrastructure is marked "ready"
678678
workerMachine.Status.InfrastructureReady = true
679-
myclient.Update(context.Background(), workerMachine)
679+
err = myclient.Update(context.Background(), workerMachine)
680+
if err != nil {
681+
t.Fatalf("unable to set machine infrastructure ready: %v", err)
682+
}
680683

681684
controlPlaneJoinMachine.Status.InfrastructureReady = true
682-
myclient.Update(context.Background(), controlPlaneJoinMachine)
685+
err = myclient.Update(context.Background(), controlPlaneJoinMachine)
686+
if err != nil {
687+
t.Fatalf("unable to set machine infrastructure ready: %v", err)
688+
}
683689

684690
<-time.After(1 * time.Second)
685691

0 commit comments

Comments
 (0)