mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
Close resources in TestLeasedKv
This commit is contained in:
parent
ab50403c35
commit
7b005f69c6
1 changed files with 5 additions and 1 deletions
|
|
@ -44,8 +44,12 @@ func TestLeasedKv(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
cli := v3client.New(etcd.Server)
|
||||
defer func() {
|
||||
etcd.Close()
|
||||
<-etcd.Server.StopNotify()
|
||||
cli.Close()
|
||||
}()
|
||||
|
||||
lkv := newLeasedKV(cli, "/test", 1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue