Skip to content

Commit fae0825

Browse files
authored
Merge pull request #1496 from marquiz/devel/fix-e2e
test/e2e: fix broken test
2 parents a86369c + c5174a8 commit fae0825

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/e2e/node_feature_discovery_test.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -855,11 +855,13 @@ core:
855855
err = f.ClientSet.AppsV1().DaemonSets(f.Namespace.Name).Delete(ctx, workerDS.Name, metav1.DeleteOptions{})
856856
Expect(err).NotTo(HaveOccurred())
857857

858-
By("Verify that labels from nfd-worker are garbage-collected")
859-
expectedLabels = map[string]k8sLabels{
860-
"*": {},
858+
if useNodeFeatureApi {
859+
By("Verify that labels from nfd-worker are garbage-collected")
860+
expectedLabels = map[string]k8sLabels{
861+
"*": {},
862+
}
863+
eventuallyNonControlPlaneNodes(ctx, f.ClientSet).WithTimeout(1 * time.Minute).Should(MatchLabels(expectedLabels, nodes))
861864
}
862-
eventuallyNonControlPlaneNodes(ctx, f.ClientSet).WithTimeout(1 * time.Minute).Should(MatchLabels(expectedLabels, nodes))
863865
})
864866
})
865867

0 commit comments

Comments
 (0)