Skip to content

Commit

Permalink
Add on expectedLabels a missing label.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellmartini committed May 9, 2023
1 parent 38d5931 commit c6393b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func validateNodeLabels(ctx context.Context, t *testing.T, profile string) {
t.Errorf("failed to 'kubectl get nodes' with args %q: %v", rr.Command(), err)
}
// docs: check if the node labels matches with the expected Minikube labels: `minikube.k8s.io/*`
expectedLabels := []string{"minikube.k8s.io/commit", "minikube.k8s.io/version", "minikube.k8s.io/updated_at", "minikube.k8s.io/name"}
expectedLabels := []string{"minikube.k8s.io/commit", "minikube.k8s.io/version", "minikube.k8s.io/updated_at", "minikube.k8s.io/name", "minikube.k8s.io/primary"}
for _, el := range expectedLabels {
if !strings.Contains(rr.Output(), el) {
t.Errorf("expected to have label %q in node labels but got : %s", el, rr.Output())
Expand Down

0 comments on commit c6393b8

Please sign in to comment.