Skip to content

Commit

Permalink
automl: update error check due to changes (#2377)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnegrey authored Mar 11, 2020
1 parent f4f43cc commit cbac09e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ public void testBatchPredict() {
BatchPredict.batchPredict(PROJECT_ID, MODEL_ID, inputUri, outputUri);
String got = bout.toString();
assertThat(got)
.contains("The model is either not found or not supported for prediction yet.");
.contains("does not exist");
} catch (IOException | ExecutionException | InterruptedException e) {
assertThat(e.getMessage())
.contains("The model is either not found or not supported for prediction yet.");
.contains("does not exist");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ public void testBatchPredict() {
BatchPredict.batchPredict(PROJECT_ID, MODEL_ID, inputUri, outputUri);
String got = bout.toString();
assertThat(got)
.contains("The model is either not found or not supported for prediction yet.");
.contains("does not exist");
} catch (IOException | ExecutionException | InterruptedException e) {
assertThat(e.getMessage())
.contains("The model is either not found or not supported for prediction yet.");
.contains("does not exist");
}
}
}

0 comments on commit cbac09e

Please sign in to comment.