From 6e76f47f828f2de1480a8680368d2dd136cc91d7 Mon Sep 17 00:00:00 2001 From: Kevin Tseng Date: Fri, 2 Sep 2022 17:14:00 -0700 Subject: [PATCH] fix: UploadFileContext not calling api.AuthTestContext --- files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files.go b/files.go index e7e71c495..e7cfe1fee 100644 --- a/files.go +++ b/files.go @@ -299,7 +299,7 @@ func (api *Client) UploadFile(params FileUploadParameters) (file *File, err erro func (api *Client) UploadFileContext(ctx context.Context, params FileUploadParameters) (file *File, err error) { // Test if user token is valid. This helps because client.Do doesn't like this for some reason. XXX: More // investigation needed, but for now this will do. - _, err = api.AuthTest() + _, err = api.AuthTestContext(ctx) if err != nil { return nil, err }