test: cleanup temporary file for TestConfigFromFile
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>release-3.5
parent
63c284211d
commit
fb3f91c141
|
@ -98,6 +98,7 @@ func TestConfigFromFile(t *testing.T) {
|
|||
continue
|
||||
}
|
||||
if cerr != nil {
|
||||
os.Remove(tmpfile.Name())
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue