chore(storage): skip CancelWriteGRPC test
Skips test mentioned in and improves logging in the test.
@@ -1104,6 +1104,7 @@ func TestIntegration_SimpleWriteGRPC(t *testing.T) {
}
func TestIntegration_CancelWriteGRPC(t *testing.T) {
+ t.Skip("https://github.com/googleapis/google-cloud-go/issues/4772")
ctx := context.Background()
// Create an HTTP client to verify test and a gRPC client to test writing.
@@ -1135,12 +1136,12 @@ func TestIntegration_CancelWriteGRPC(t *testing.T) {
// The next Write should return context.Canceled.
_, err = w.Write(content)
if !xerrors.Is(err, context.Canceled) {
- t.Fatalf("got %v, wanted context.Canceled", err)
+ t.Fatalf("On Write: got %v, wanted context.Canceled", err)
}
// The Close should too.
err = w.Close()
if !xerrors.Is(err, context.Canceled) {
- t.Fatalf("got %v, wanted context.Canceled", err)
+ t.Fatalf("On Close: got %v, wanted context.Canceled", err)
}
// Use HTTP client to ensure the object wasn't written.
