mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #39320 from bruceauyeung/k8s-branch-fix-incorrect-parameter-passing
Automatic merge from submit-queue fix incorrect parameter passing Signed-off-by: bruceauyeung <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.
This commit is contained in:
commit
3ac0581a81
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user