Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 6cf24f2

Browse files
authored
samples: Flaky test fix (#1490)
* Rework the tests to remove flakiness (hopefully) * Update IDs since old test deleted my knowledge base * Update GCS links to fix permission denied errors * Use declared var
1 parent b246874 commit 6cf24f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

samples/snippets/src/test/java/com/example/video/DetectIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ public void testTrackObjects() throws Exception {
8484

8585
@Test
8686
public void testTrackObjectsGcs() throws Exception {
87-
VideoAnnotationResults result = TrackObjects.trackObjectsGcs("gs://demomaker/cat.mp4");
87+
VideoAnnotationResults result = TrackObjects.trackObjectsGcs(
88+
"gs://cloud-samples-data/video/cat.mp4");
8889

8990
boolean textExists = false;
9091
for (ObjectTrackingAnnotation objectTrackingAnnotation : result.getObjectAnnotationsList()) {

0 commit comments

Comments
 (0)