mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Merge pull request #33282 from guangxuli/k8s_0922_03
Automatic merge from submit-queue remove the tmp file
This commit is contained in:
commit
0b04890605
@ -83,8 +83,9 @@ func TestJwtProvider(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Error creating temp file: %v", err)
|
t.Fatalf("Error creating temp file: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
filename := file.Name()
|
filename := file.Name()
|
||||||
|
defer os.Remove(filename)
|
||||||
|
|
||||||
_, err = file.WriteString(jsonKey)
|
_, err = file.WriteString(jsonKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Error writing temp file: %v", err)
|
t.Fatalf("Error writing temp file: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user