Skip to content

Commit

Permalink
samples: samples: fix test (#2872)
Browse files Browse the repository at this point in the history
Fixes #2867
  • Loading branch information
stephaniewang526 authored and chingor13 committed Aug 24, 2020
1 parent 81eae9d commit c7c22d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ static void streamingAutoMlClassification(String filePath, String projectId, Str
System.out.format("%fs: %s (%f)\n", offset, entity, confidence);
}
}
System.out.println("Video streamed successfully.");
} catch (Exception e) {
e.printStackTrace();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ public void tearDown() {
public void testStreamingAutoMlClassification() {
StreamingAutoMlClassification.streamingAutoMlClassification(
"resources/cat.mp4", PROJECT_ID, MODEL_ID);
String got = bout.toString();

assertThat(got).contains("brush_hair");
assertThat(bout.toString()).contains("Video streamed successfully.");
}
}

0 comments on commit c7c22d7

Please sign in to comment.