mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
test: fix two assertion messages in DockerTest
This commit is contained in:
@@ -32,7 +32,7 @@ import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
import static org.hamcrest.Matchers.is;
|
||||
|
||||
|
||||
|
||||
|
||||
class DockerTest extends AbstractTaskRunnerTest {
|
||||
@Inject
|
||||
@@ -170,9 +170,9 @@ class DockerTest extends AbstractTaskRunnerTest {
|
||||
|
||||
receive.blockLast(timeout);
|
||||
// Assert that the log messages are present
|
||||
assertThat(createContainerLog).isNotNull().withFailMessage("create container log should not be null");
|
||||
assertThat(createContainerLog).withFailMessage("create container log should not be null").isNotNull();
|
||||
assertThat(createContainerLog.getMessage()).contains("Container created:");
|
||||
assertThat(awaitLog).isNotNull().withFailMessage("await log should not be null");
|
||||
assertThat(awaitLog).withFailMessage("await log should not be null").isNotNull();
|
||||
assertThat(awaitLog.getMessage()).contains("Resuming existing container:");
|
||||
|
||||
// Get container id from the logs using regex
|
||||
|
||||
Reference in New Issue
Block a user