Skip to content

Commit cbac09e

Browse files
authored
automl: update error check due to changes (#2377)
1 parent f4f43cc commit cbac09e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

automl/beta/src/test/java/com/example/automl/BatchPredictTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ public void testBatchPredict() {
7474
BatchPredict.batchPredict(PROJECT_ID, MODEL_ID, inputUri, outputUri);
7575
String got = bout.toString();
7676
assertThat(got)
77-
.contains("The model is either not found or not supported for prediction yet.");
77+
.contains("does not exist");
7878
} catch (IOException | ExecutionException | InterruptedException e) {
7979
assertThat(e.getMessage())
80-
.contains("The model is either not found or not supported for prediction yet.");
80+
.contains("does not exist");
8181
}
8282
}
8383
}

automl/cloud-client/src/test/java/com/example/automl/BatchPredictTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ public void testBatchPredict() {
8383
BatchPredict.batchPredict(PROJECT_ID, MODEL_ID, inputUri, outputUri);
8484
String got = bout.toString();
8585
assertThat(got)
86-
.contains("The model is either not found or not supported for prediction yet.");
86+
.contains("does not exist");
8787
} catch (IOException | ExecutionException | InterruptedException e) {
8888
assertThat(e.getMessage())
89-
.contains("The model is either not found or not supported for prediction yet.");
89+
.contains("does not exist");
9090
}
9191
}
9292
}

0 commit comments

Comments
 (0)