mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 20:00:07 +00:00
Merge pull request #135476 from ardaguclu/deflake-subresource-test
Filter out the nodes created by other tests
This commit is contained in:
@@ -2138,7 +2138,9 @@ metadata:
|
||||
})
|
||||
ginkgo.It("GET on status subresource of built-in type (node) returns identical info as GET on the built-in type", func(ctx context.Context) {
|
||||
ginkgo.By("first listing nodes in the cluster, and using first node of the list")
|
||||
nodes, err := c.CoreV1().Nodes().List(ctx, metav1.ListOptions{})
|
||||
nodes, err := c.CoreV1().Nodes().List(ctx, metav1.ListOptions{
|
||||
FieldSelector: "spec.unschedulable=false",
|
||||
})
|
||||
framework.ExpectNoError(err)
|
||||
gomega.Expect(nodes.Items).ToNot(gomega.BeEmpty())
|
||||
node := nodes.Items[0]
|
||||
|
||||
Reference in New Issue
Block a user