Skip to content

Commit

Permalink
Tweak Logsdb* and TsdbIndexingRollingUpgradeIT
Browse files Browse the repository at this point in the history
Adjust assertion to more losely detect an error that can be ignored.

Closes elastic#115817
  • Loading branch information
martijnvg committed Oct 29, 2024
1 parent 78a531b commit da89166
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
import static org.elasticsearch.upgrades.LogsIndexModeRollingUpgradeIT.enableLogsdbByDefault;
import static org.elasticsearch.upgrades.LogsIndexModeRollingUpgradeIT.getWriteBackingIndex;
import static org.elasticsearch.upgrades.TsdbIT.formatInstant;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.*;

public class LogsdbIndexingRollingUpgradeIT extends AbstractRollingUpgradeTestCase {

Expand Down Expand Up @@ -240,7 +237,7 @@ protected static void startTrial() throws IOException {
} catch (ResponseException e) {
var responseBody = entityAsMap(e.getResponse());
String error = ObjectPath.evaluate(responseBody, "error_message");
assertThat(error, equalTo("Trial was already activated."));
assertThat(error, containsString("Trial was already activated."));
}
}

Expand Down

0 comments on commit da89166

Please sign in to comment.