Skip to content

Commit e317331

Browse files
committed
Fix Vision tests.
They were brittle, since they were looking for a specific error message, which changed in the service.
1 parent 012874e commit e317331

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)