Skip to content

Commit c16a5b5

Browse files
authored
fix: update vision test system tests due to changes in their algorthm (#11525)
1 parent 2db7ff7 commit c16a5b5

File tree

1 file changed

+2
-2
lines changed
  • java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it

1 file changed

+2
-2
lines changed

java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public void detectSafeSearchTest() throws IOException {
437437
requestAnnotatedImage("wakeupcat.jpg", Type.SAFE_SEARCH_DETECTION, false);
438438
SafeSearchAnnotation annotation = res.getSafeSearchAnnotation();
439439
assertEquals(Likelihood.VERY_UNLIKELY, annotation.getAdult());
440-
assertEquals(Likelihood.VERY_UNLIKELY, annotation.getRacy());
440+
assertEquals(Likelihood.UNLIKELY, annotation.getRacy());
441441
}
442442

443443
@Test
@@ -457,7 +457,7 @@ public void detectSafeSearchGcsTest() throws IOException {
457457
requestAnnotatedImage("label/wakeupcat.jpg", Type.SAFE_SEARCH_DETECTION, true);
458458
SafeSearchAnnotation annotation = res.getSafeSearchAnnotation();
459459
assertEquals(Likelihood.VERY_UNLIKELY, annotation.getAdult());
460-
assertEquals(Likelihood.VERY_UNLIKELY, annotation.getRacy());
460+
assertEquals(Likelihood.UNLIKELY, annotation.getRacy());
461461
}
462462

463463
@Test

0 commit comments

Comments
 (0)