mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 12:46:06 +00:00
Update e2e tests to list only schedulable nodes, to make them work with master Node registered.
This commit is contained in:
@@ -52,9 +52,7 @@ var _ = Describe("Pod Disks", func() {
|
||||
SkipUnlessNodeCountIsAtLeast(2)
|
||||
|
||||
podClient = framework.Client.Pods(framework.Namespace.Name)
|
||||
|
||||
nodes, err := framework.Client.Nodes().List(api.ListOptions{})
|
||||
expectNoError(err, "Failed to list nodes for e2e cluster.")
|
||||
nodes := ListSchedulableNodesOrDie(framework.Client)
|
||||
|
||||
Expect(len(nodes.Items)).To(BeNumerically(">=", 2), "Requires at least 2 nodes")
|
||||
|
||||
|
Reference in New Issue
Block a user