Skip to content

Commit 95145e1

Browse files
committed
chore: address CodeRabbit nits
Signed-off-by: Tyler Gillson <[email protected]>
1 parent 7f0726a commit 95145e1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/e2e/clusteradm/joinhubscenario_klusterletfile_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ var _ = ginkgo.Describe("test clusteradm join with klusterlet file", ginkgo.Labe
9090

9191
// Verify work configuration from the klusterlet file is used
9292
if klusterlet.Spec.WorkConfiguration == nil {
93-
return fmt.Errorf("expected work configuration to be set from file after upgrade")
93+
return fmt.Errorf("expected work configuration to be set from file after join")
9494
}
9595
foundFeatureGate := false
9696
for _, featureGate := range klusterlet.Spec.WorkConfiguration.FeatureGates {
@@ -99,7 +99,7 @@ var _ = ginkgo.Describe("test clusteradm join with klusterlet file", ginkgo.Labe
9999
}
100100
}
101101
if !foundFeatureGate {
102-
return fmt.Errorf("expected feature gate %s to be set after upgrade", feature.RawFeedbackJsonString)
102+
return fmt.Errorf("expected feature gate %s to be set after join", feature.RawFeedbackJsonString)
103103
}
104104

105105
return nil

test/e2e/util/helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func CheckOperatorAndAgentVersion(mcl1KubeClient *kubernetes.Clientset, version
223223
return err
224224
}
225225
if registration.Spec.Template.Spec.Containers[0].Image != fmt.Sprintf("quay.io/open-cluster-management/registration:%s", version) {
226-
return fmt.Errorf("version of the registration agent is not correct, get %s", operator.Spec.Template.Spec.Containers[0].Image)
226+
return fmt.Errorf("version of the registration agent is not correct, get %s", registration.Spec.Template.Spec.Containers[0].Image)
227227
}
228228
return nil
229229
}

0 commit comments

Comments
 (0)