From 6ed71620d96f06ca67693250644f9bc6deb6b80e Mon Sep 17 00:00:00 2001 From: Scott Hart Date: Fri, 11 Oct 2024 16:28:47 -0400 Subject: [PATCH] impl(compute): reduce specificity on integration test error message (#14782) --- .../integration_tests/compute_integration_test.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/google/cloud/compute/integration_tests/compute_integration_test.cc b/google/cloud/compute/integration_tests/compute_integration_test.cc index a76f32d16a19f..bef133ed169c9 100644 --- a/google/cloud/compute/integration_tests/compute_integration_test.cc +++ b/google/cloud/compute/integration_tests/compute_integration_test.cc @@ -165,7 +165,7 @@ TEST_F(ComputeIntegrationTest, VerifyUpdateSendsUpdateMaskParameter) { auto result = client.InsertDisk(project_id_, zone_, disk).get(); ASSERT_THAT(result, IsOk()); - google::cloud::cpp::compute::v1::Disk disk_update = disk; + google::cloud::cpp::compute::v1::Disk disk_update; disk_update.mutable_labels()->clear(); google::cloud::cpp::compute::disks::v1::UpdateDiskRequest update_request; @@ -173,14 +173,8 @@ TEST_F(ComputeIntegrationTest, VerifyUpdateSendsUpdateMaskParameter) { update_request.set_zone(zone_); update_request.set_disk(disk.name()); *(update_request.mutable_disk_resource()) = disk_update; - auto update_disk = client.UpdateDisk(update_request).get(); - - EXPECT_THAT(update_disk, - StatusIs(StatusCode::kInvalidArgument, - HasSubstr("Empty updateMask is not supported"))); - update_request.set_update_mask("labels"); - update_disk = client.UpdateDisk(update_request).get(); + auto update_disk = client.UpdateDisk(update_request).get(); EXPECT_THAT(update_disk, StatusIs(StatusCode::kInvalidArgument, HasSubstr("Updating labels is not supported")));