fix incorrect parameter passing

Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn>
This commit is contained in:
bruceauyeung 2016-12-30 16:36:21 +08:00
parent f545d6ad47
commit 21e49646b8

View File

@ -177,7 +177,7 @@ func TestWriteKubeconfigToDisk(t *testing.T) {
err,
)
}
newFile, err := ioutil.ReadFile(configPath)
newFile, _ := ioutil.ReadFile(configPath)
if !bytes.Equal(newFile, rt.file) {
t.Errorf(
"failed WriteKubeconfigToDisk config write:\n\texpected: %s\n\t actual: %s",