mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 12:46:06 +00:00
Consolidate node selecting tests to only use Schedulable + Running
nodes.
This commit is contained in:
@@ -277,7 +277,7 @@ func truncate(b []byte, maxLen int) []byte {
|
||||
|
||||
func pickNode(c *client.Client) (string, error) {
|
||||
// TODO: investigate why it doesn't work on master Node.
|
||||
nodes := framework.ListSchedulableNodesOrDie(c)
|
||||
nodes := framework.GetReadySchedulableNodesOrDie(c)
|
||||
if len(nodes.Items) == 0 {
|
||||
return "", fmt.Errorf("no nodes exist, can't test node proxy")
|
||||
}
|
||||
|
Reference in New Issue
Block a user