Skip to content

Commit 46ecbfb

Browse files
Use duration to convert ms
1 parent fd94486 commit 46ecbfb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/itest/java/com/iexec/blockchain/IntegrationTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.web3j.crypto.Sign;
3535

3636
import java.math.BigInteger;
37+
import java.time.Duration;
3738
import java.util.ArrayList;
3839
import java.util.List;
3940
import java.util.Optional;
@@ -152,7 +153,8 @@ public void shouldBurstTransactionsWithAverageOfOneTxPerBlock(){
152153
}
153154

154155
private String triggerDeal(int taskVolume) {
155-
int secondsPollingInterval = POLLING_INTERVAL_MS / 1000;
156+
int secondsPollingInterval = Duration.ofMillis(POLLING_INTERVAL_MS)
157+
.toSecondsPart();
156158
int secondsTimeout = secondsPollingInterval * MAX_POLLING_ATTEMPTS;
157159
String appAddress = iexecHubService.createApp(buildRandomName("app"),
158160
"docker.io/repo/name:1.0.0",

0 commit comments

Comments
 (0)