close test project/uplink (#2605)

* close test project/uplink

* check err
This commit is contained in:
Jess G 2019-07-19 10:24:49 -07:00 committed by GitHub
parent 5fe95fe8fa
commit 665a1e386f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,7 @@ func TestProjectListBuckets(t *testing.T) {
ul, err := uplink.NewUplink(ctx, &cfg)
require.NoError(t, err)
defer ctx.Check(ul.Close)
key, err := uplink.ParseAPIKey(apiKey)
require.NoError(t, err)
@ -93,6 +94,7 @@ func TestProjectListBuckets(t *testing.T) {
p, err = ul.OpenProject(ctx, satelliteAddr, key)
require.NoError(t, err)
defer ctx.Check(p.Close)
list = uplink.BucketListOptions{
Direction: storj.Forward,