diff --git a/automl/snippets/src/test/java/com/example/automl/BatchPredictTest.java b/automl/snippets/src/test/java/com/example/automl/BatchPredictTest.java index d46b669ac1d..974caaa6e7d 100644 --- a/automl/snippets/src/test/java/com/example/automl/BatchPredictTest.java +++ b/automl/snippets/src/test/java/com/example/automl/BatchPredictTest.java @@ -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"); } } }