cleanup one more tempfile (#7839)
Introduced by a recent PR(#7810) Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
This commit is contained in:
parent
3e7b463908
commit
369245e606
|
@ -468,7 +468,7 @@ func TestHTTPMetrics(t *testing.T) {
|
|||
func TestShutdownWithStaleConnection(t *testing.T) {
|
||||
dbDir, err := ioutil.TempDir("", "tsdb-ready")
|
||||
testutil.Ok(t, err)
|
||||
defer testutil.Ok(t, os.RemoveAll(dbDir))
|
||||
defer func() { testutil.Ok(t, os.RemoveAll(dbDir)) }()
|
||||
|
||||
db, err := tsdb.Open(dbDir, nil, nil, nil)
|
||||
testutil.Ok(t, err)
|
||||
|
|
Loading…
Reference in New Issue