diff --git a/vision/landmark-detection/src/test/java/com/google/cloud/vision/samples/landmarkdetection/DetectLandmarkIT.java b/vision/landmark-detection/src/test/java/com/google/cloud/vision/samples/landmarkdetection/DetectLandmarkIT.java index df73a40a3f6..970ec0d63d2 100644 --- a/vision/landmark-detection/src/test/java/com/google/cloud/vision/samples/landmarkdetection/DetectLandmarkIT.java +++ b/vision/landmark-detection/src/test/java/com/google/cloud/vision/samples/landmarkdetection/DetectLandmarkIT.java @@ -69,7 +69,7 @@ public class DetectLandmarkIT { appUnderTest.identifyLandmark(PRIVATE_LANDMARK_URI, MAX_RESULTS); fail("Expected IOException"); } catch (IOException expected) { - assertThat(expected.getMessage()).named("IOException message").contains("ACCESS_DENIED"); + assertThat(expected.getMessage()).named("IOException message").contains("permission"); } } }