test: cleanup temporary file for TestConfigFromFile

Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
release-3.5
Li Zhijian 2020-11-25 17:40:43 +08:00
parent 63c284211d
commit fb3f91c141
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ func TestConfigFromFile(t *testing.T) {
continue
}
if cerr != nil {
os.Remove(tmpfile.Name())
continue
}