Skip to content

Commit

Permalink
updating error message in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pmpailis committed Jul 25, 2024
1 parent a75e885 commit cc6204a
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 @@ -76,7 +76,7 @@ public void createTestIndex() throws IOException {
public void testPartialResponseHandling() throws SQLException {
try (Connection c = esJdbc(); Statement s = c.createStatement()) {
SQLException exception = expectThrows(SQLException.class, () -> s.executeQuery("SELECT * FROM test ORDER BY test_field ASC"));
assertThat(exception.getMessage(), containsString("Search rejected due to missing shards"));
assertThat(exception.getMessage(), containsString("Cannot execute [open_point_in_time] action due to missing shards"));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void testPartialResponseHandling() throws Exception {
createTestIndex();
try (Connection c = esJdbc(); Statement s = c.createStatement()) {
SQLException exception = expectThrows(SQLException.class, () -> s.executeQuery("SELECT * FROM test ORDER BY test_field ASC"));
assertThat(exception.getMessage(), containsString("Search rejected due to missing shards"));
assertThat(exception.getMessage(), containsString("Cannot execute [open_point_in_time] action due to missing shards"));
}
}

Expand Down

0 comments on commit cc6204a

Please sign in to comment.