valepakh commented on code in PR #2109:
URL: https://github.com/apache/ignite-3/pull/2109#discussion_r1214173015
##########
modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/call/unit/ItDeployUndeployCallsTest.java:
##########
@@ -92,19 +101,21 @@ void deployListStatusUndeploy() {
// Then
assertThat(deployOutput.hasError()).isFalse();
assertThat(deployOutput.body()).isEqualTo(MessageUiComponent.from(UiElements.done()).render());
- // And list is not empty
- List<UnitStatusRecord> unisStatuses =
listUnitCall.execute(urlInput).body();
- assertThat(unisStatuses.size()).isEqualTo(1);
- // And status is not empty
- await().untilAsserted(() ->
assertThat(unitStatusCall.execute(statusInput("test.id"))).isNotNull());
+
+ await().untilAsserted(() -> {
+ // And list is not empty
+ List<UnitStatusRecord> unisStatuses =
listUnitCall.execute(listAllInput()).body();
+ assertThat(unisStatuses.size()).isEqualTo(1);
+
Assertions.assertThat(unisStatuses.get(0).versionToStatus()).containsExactly(entry("1.0.0",
DEPLOYED));
Review Comment:
It's impossible because it will clash with other `assertThat`, this is the
overload with `Map` parameter.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]