Skip to content

Commit 6182921

Browse files
authored
Tweak Logsdb* and TsdbIndexingRollingUpgradeIT (#115850)
Adjust assertion to more losely detect an error that can be ignored. Closes #115817
1 parent 78a531b commit 6182921

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

qa/rolling-upgrade/src/javaRestTest/java/org/elasticsearch/upgrades/LogsdbIndexingRollingUpgradeIT.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@
2828
import static org.elasticsearch.upgrades.LogsIndexModeRollingUpgradeIT.enableLogsdbByDefault;
2929
import static org.elasticsearch.upgrades.LogsIndexModeRollingUpgradeIT.getWriteBackingIndex;
3030
import static org.elasticsearch.upgrades.TsdbIT.formatInstant;
31-
import static org.hamcrest.Matchers.equalTo;
32-
import static org.hamcrest.Matchers.greaterThan;
33-
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
34-
import static org.hamcrest.Matchers.notNullValue;
31+
import static org.hamcrest.Matchers.*;
3532

3633
public class LogsdbIndexingRollingUpgradeIT extends AbstractRollingUpgradeTestCase {
3734

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

0 commit comments

Comments
 (0)