Commit 3ac0581a authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #39320 from bruceauyeung/k8s-branch-fix-incorrect-parameter-passing

Automatic merge from submit-queue fix incorrect parameter passing Signed-off-by: 's avatarbruceauyeung <ouyang.qinhua@zte.com.cn> **What this PR does / why we need it**: 1. fix incorrect parameter passing when creating error 2. fix ineffectual assignment to err variable.
parents 5fc6e2d7 21e49646
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment