mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #12489 from zhijianli88/cleanup-tmpfiles
Cleanup tmpfiles
This commit is contained in:
commit
c632042bb9
@ -98,6 +98,7 @@ func TestConfigFromFile(t *testing.T) {
|
||||
continue
|
||||
}
|
||||
if cerr != nil {
|
||||
os.Remove(tmpfile.Name())
|
||||
continue
|
||||
}
|
||||
|
||||
|
@ -135,6 +135,7 @@ func TestZeroToEnd(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer os.Remove(f.Name())
|
||||
defer f.Close()
|
||||
|
||||
// Ensure 0 size is a nop so zero-to-end on an empty file won't give EINVAL.
|
||||
|
Loading…
x
Reference in New Issue
Block a user