Skip to content

Commit d442bfd

Browse files
nnegreychingor13
authored andcommitted
samples: video: fix flaky tests (#2376)
Fix: #2334 Fix: #2335
1 parent 40b41c3 commit d442bfd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

video/src/test/java/com/example/video/DetectFacesGcsIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ public void tearDown() {
4545
public void testDetectFacesGcs() throws Exception {
4646
DetectFacesGcs.detectFacesGcs("gs://cloud-samples-data/video/googlework_short.mp4");
4747
String got = bout.toString();
48-
assertThat(got).contains("glasses");
48+
assertThat(got).contains("Attribute");
4949
}
5050
}

video/src/test/java/com/example/video/DetectFacesIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public void tearDown() {
4646
public void testDetectFaces() throws Exception {
4747
DetectFaces.detectFaces("resources/googlework_short.mp4");
4848
String got = bout.toString();
49-
assertThat(got).contains("glasses");
49+
assertThat(got).contains("Attribute");
5050
}
5151
}

video/src/test/java/com/example/video/DetectPersonGcsIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public void tearDown() {
4646
public void testDetectPersonGcs() throws Exception {
4747
DetectPersonGcs.detectPersonGcs("gs://cloud-samples-data/video/googlework_short.mp4");
4848
String got = bout.toString();
49-
assertThat(got).contains("Hair");
49+
assertThat(got).contains("Landmark");
5050
}
5151
}

video/src/test/java/com/example/video/DetectPersonIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public void tearDown() {
4646
public void testDetectPerson() throws Exception {
4747
DetectPerson.detectPerson("resources/googlework_short.mp4");
4848
String got = bout.toString();
49-
assertThat(got).contains("Hair");
49+
assertThat(got).contains("Landmark");
5050
}
5151
}

0 commit comments

Comments
 (0)