Skip to content

Commit

Permalink
remove TestOpenAppendableWriterUnsupportedEmulated
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennaEpp committed Jan 7, 2025
1 parent 2f11395 commit 81b7159
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions storage/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -935,32 +935,6 @@ func TestOpenWriterEmulated(t *testing.T) {
})
}

func TestOpenAppendableWriterUnsupportedEmulated(t *testing.T) {
transportClientTest(skipHTTP("appends only supported via gRPC"), t, func(t *testing.T, ctx context.Context, project, bucket string, client storageClient) {
// Populate test data.
_, err := client.CreateBucket(ctx, project, bucket, &BucketAttrs{
Name: bucket,
StorageClass: "STANDARD", // STANDARD does not support appends
}, nil)
if err != nil {
t.Fatalf("client.CreateBucket: %v", err)
}
prefix := time.Now().Nanosecond()
objName := fmt.Sprintf("%d-object-%d", prefix, time.Now().Nanosecond())

vc := &Client{tc: client}
w := vc.Bucket(bucket).Object(objName).NewWriter(ctx)
w.Append = true
_, err = w.Write(randomBytesToWrite)
if err != nil {
return // An error here passes the test. If no error, try to close.
}
if err := w.Close(); err == nil {
t.Fatal("writing test data: got success; want error")
}
})
}

func TestOpenAppendableWriterEmulated(t *testing.T) {
transportClientTest(skipHTTP("appends only supported via gRPC"), t, func(t *testing.T, ctx context.Context, project, bucket string, client storageClient) {
// Populate test data.
Expand Down

0 comments on commit 81b7159

Please sign in to comment.