Revert PRs that introduced propogating contexts (#835)

Co-authored-by: Dmitry Kisler <admin@dkisler.com>
This commit is contained in:
James Humphries
2023-11-08 21:09:14 +00:00
committed by GitHub
parent 2d6dd8eda8
commit 9c24b6183a
124 changed files with 1131 additions and 1535 deletions

View File

@@ -4,7 +4,6 @@
package oss
import (
"context"
"fmt"
"math/rand"
"os"
@@ -87,7 +86,7 @@ func TestBackendConfigWorkSpace(t *testing.T) {
b := backend.TestBackendConfig(t, New(), backend.TestWrapConfig(config)).(*Backend)
createOSSBucket(t, b.ossClient, bucketName)
defer deleteOSSBucket(t, b.ossClient, bucketName)
if _, err := b.Workspaces(context.Background()); err != nil {
if _, err := b.Workspaces(); err != nil {
t.Fatal(err.Error())
}
if !strings.HasPrefix(b.ossClient.Config.Endpoint, "https://oss-cn-beijing") {
@@ -157,9 +156,7 @@ func TestBackendConfig_invalidKey(t *testing.T) {
"tablestore_table": "TableStore",
})
ctx := context.Background()
_, results := New().PrepareConfig(ctx, cfg)
_, results := New().PrepareConfig(cfg)
if !results.HasErrors() {
t.Fatal("expected config validation error")
}