diff --git a/client.go b/client.go index fd3522c..fc243a7 100644 --- a/client.go +++ b/client.go @@ -134,7 +134,7 @@ func (c *Client) Describe(path string) (Object, error) { resp, err := c.R(). SetHeader("Accept", "application/json"). - SetResult(object). + SetResult(&object). Execute("DESCRIBE", path) c.logger.Debugf("Describe Request Response: %v", resp) diff --git a/client_test.go b/client_test.go index 3f59f00..3a79ffe 100644 --- a/client_test.go +++ b/client_test.go @@ -40,6 +40,7 @@ func TestMain(m *testing.M) { } func TestDescribeFile(t *testing.T) { + t.Cleanup(func() { DeleteTestPath(t) }) _, name := UploadRandomFile1MB(t) obj, err := bunnyclient.Describe(name) if err != nil {