Skip to content

Commit

Permalink
Merge pull request #10 from iExecBlockchainComputing/release/1.0.2
Browse files Browse the repository at this point in the history
Release/1.0.2
  • Loading branch information
jbern0rd authored Apr 13, 2023
2 parents c61ebd2 + 7bebd69 commit f089ed9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file.

## [[1.0.2]](https://github.com/iExecBlockchainComputing/iexec-commons-containers/releases/tag/v1.0.2) 2023-04-13

### Bug Fixes
- Remove unused `@Tag` annotations in tests. (#8)
- Remove `WaitUtils` usage. (#9)
### Dependency Upgrades
- Upgrade to `iexec-common` 8.0.0. (#9)

## [[1.0.1]](https://github.com/iExecBlockchainComputing/iexec-commons-containers/releases/tag/v1.0.1) 2023-03-16

- Add `settings.gradle` file to set correct project name for SonarCloud analyses. (#5)
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version=1.0.1
iexecCommonVersion=7.0.0
version=1.0.2
iexecCommonVersion=8.0.0

nexusUser
nexusPassword
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import com.github.dockerjava.transport.DockerHttpClient;
import com.github.dockerjava.zerodep.ZerodepDockerHttpClient;
import com.iexec.common.utils.ArgsUtils;
import com.iexec.common.utils.WaitUtils;
import com.iexec.commons.containers.DockerLogs;
import com.iexec.commons.containers.DockerRunFinalStatus;
import com.iexec.commons.containers.DockerRunRequest;
Expand Down Expand Up @@ -688,7 +687,12 @@ public int waitContainerUntilExitOrTimeout(
if (seconds % 60 == 0) { // don't display logs too often
log.info("Container is running [name:{}]", containerName);
}
WaitUtils.sleep(1);
try {
TimeUnit.SECONDS.sleep(1);
} catch (InterruptedException e) {
log.error("Sleep was interrupted [exception:{}]", e.getMessage());
Thread.currentThread().interrupt();
}
isExited = getContainerStatus(containerName).equals(EXITED_STATUS);
isTimeout = Instant.now().isAfter(timeoutDate);
seconds++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
package com.iexec.commons.containers.client;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

@Tag("slow")
class DockerClientFactoryTests {

private static final String DOCKER_IO_USER = "DOCKER_IO_USER";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
import com.iexec.commons.containers.DockerRunResponse;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.RandomStringUtils;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.NullSource;
import org.junit.jupiter.params.provider.ValueSource;
Expand All @@ -55,7 +58,6 @@
import static org.mockito.Mockito.*;

@Slf4j
@Tag("slow")
class DockerClientInstanceTests extends AbstractDockerTests {

//classic
Expand Down

0 comments on commit f089ed9

Please sign in to comment.