From b7683ab8dcdeca10ff52d626a285edcf7c1db719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 1 Jul 2024 16:12:52 +0200 Subject: Remove context from struct, add ctx as first args to many functions --- tests/bulk_upload_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/bulk_upload_test.go') diff --git a/tests/bulk_upload_test.go b/tests/bulk_upload_test.go index cb64168..35285ea 100644 --- a/tests/bulk_upload_test.go +++ b/tests/bulk_upload_test.go @@ -21,6 +21,7 @@ package tests import ( "archive/tar" "bytes" + "context" "strings" "testing" @@ -38,6 +39,7 @@ func TestBulkUploadSuccess(t *testing.T) { obj2.FullName(): []byte("world"), }) n, err := c.Account().BulkUpload( + context.TODO(), "", // upload path schwift.BulkUploadTar, bytes.NewReader(archive), @@ -56,6 +58,7 @@ func TestBulkUploadSuccess(t *testing.T) { func TestBulkUploadArchiveError(t *testing.T) { testWithContainer(t, func(c *schwift.Container) { n, err := c.Account().BulkUpload( + context.TODO(), c.Name(), // upload path schwift.BulkUploadTar, strings.NewReader("This is not the TAR archive you're looking for."), @@ -81,6 +84,7 @@ func TestBulkUploadObjectError(t *testing.T) { obj2.Name(): []byte("world"), }) n, err := c.Account().BulkUpload( + context.TODO(), c.Name(), // upload path schwift.BulkUploadTar, bytes.NewReader(archive), -- cgit v1.2.3