TestGetNodes prints more output for debugging failures

This commit is contained in:
Ryan Richard 2020-07-08 16:37:06 -07:00
parent 1c7109d5aa
commit c307a263ec
1 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,7 @@ SPDX-License-Identifier: Apache-2.0
package integration
import (
"os"
"os/exec"
"testing"
@ -13,6 +14,9 @@ import (
)
func TestGetNodes(t *testing.T) {
err := exec.Command("kubectl", "get", "nodes").Run()
cmd := exec.Command("kubectl", "get", "nodes")
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err := cmd.Run()
require.NoError(t, err)
}