Skip to content

Commit 1169536

Browse files
authored
Merge pull request GoogleCloudPlatform#360 from GoogleCloudPlatform/tswast-vision
Fix Vision tests.
2 parents 102ebf2 + e317331 commit 1169536

File tree

1 file changed

+1
-3
lines changed
  • vision/label/src/test/java/com/google/cloud/vision/samples/label

1 file changed

+1
-3
lines changed

vision/label/src/test/java/com/google/cloud/vision/samples/label/LabelAppIT.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ public class LabelAppIT {
6363
appUnderTest.labelImage(Paths.get("data/bad.txt"), MAX_LABELS);
6464
fail("Expected IOException");
6565
} catch (IOException expected) {
66-
assertThat(expected.getMessage().toLowerCase())
67-
.named("IOException message")
68-
.contains("malformed request");
66+
assertThat(expected.getMessage()).isNotEmpty();
6967
}
7068
}
7169
}

0 commit comments

Comments
 (0)