Commit c7855112 authored by Ronak Sakhuja's avatar Ronak Sakhuja
Browse files

Fixed lint

parent 549fff77
Pipeline #42792 failed with stage
in 1 minute and 46 seconds
......@@ -81,6 +81,7 @@ public class BlobContainerClientFactoryImplTest {
PartitionInfoAzure.builder()
.idConfig(Property.builder().value(PARTITION_ID).build())
.storageAccountNameConfig(Property.builder().value(ACCOUNT_NAME).build()).build());
BlobContainerClient containerClient = this.sut.getClient(PARTITION_ID, STORAGE_CONTAINER_NAME);
assertNotNull(containerClient);
......
......@@ -49,7 +49,7 @@ public class BlobStoreRetryConfigurationTest {
Assert.isTrue(requestRetryOptions.getTryTimeoutDuration().equals(defaultRequestRetryOptions.getTryTimeoutDuration()));
Assert.isTrue(requestRetryOptions.getRetryDelay().equals(defaultRequestRetryOptions.getRetryDelay()));
Assert.isTrue(requestRetryOptions.getMaxRetryDelay().equals(defaultRequestRetryOptions.getMaxRetryDelay()));
assertEquals(requestRetryOptions.getSecondaryHost(),defaultRequestRetryOptions.getSecondaryHost());
assertEquals(requestRetryOptions.getSecondaryHost(), defaultRequestRetryOptions.getSecondaryHost());
}
@Test
......@@ -62,7 +62,7 @@ public class BlobStoreRetryConfigurationTest {
Assert.isTrue(requestRetryOptions.getTryTimeoutDuration().equals(defaultRequestRetryOptions.getTryTimeoutDuration()));
Assert.isTrue(requestRetryOptions.getRetryDelay().equals(defaultRequestRetryOptions.getRetryDelay()));
Assert.isTrue(requestRetryOptions.getMaxRetryDelay().equals(defaultRequestRetryOptions.getMaxRetryDelay()));
assertEquals(requestRetryOptions.getSecondaryHost(),defaultRequestRetryOptions.getSecondaryHost());
assertEquals(requestRetryOptions.getSecondaryHost(), defaultRequestRetryOptions.getSecondaryHost());
}
@Test
......@@ -75,13 +75,13 @@ public class BlobStoreRetryConfigurationTest {
Assert.isTrue(requestRetryOptions.getTryTimeoutDuration().equals(Duration.ofSeconds(tryTimeoutValue)));
Assert.isTrue(requestRetryOptions.getRetryDelay().equals(defaultRequestRetryOptions.getRetryDelay()));
Assert.isTrue(requestRetryOptions.getMaxRetryDelay().equals(defaultRequestRetryOptions.getMaxRetryDelay()));
assertEquals(requestRetryOptions.getSecondaryHost(),defaultRequestRetryOptions.getSecondaryHost());
assertEquals(requestRetryOptions.getSecondaryHost(), defaultRequestRetryOptions.getSecondaryHost());
}
@Test
public void should_set_RetryDelay() {
int retryDelayValue = 50;
int maxRetryDelayValue =100;
int maxRetryDelayValue = 100;
blobStoreRetryConfiguration.setRetryDelayInMs(retryDelayValue);
blobStoreRetryConfiguration.setMaxRetryDelayInMs(maxRetryDelayValue);
RequestRetryOptions requestRetryOptions = blobStoreRetryConfiguration.getRequestRetryOptions();
......@@ -90,7 +90,7 @@ public class BlobStoreRetryConfigurationTest {
Assert.isTrue(requestRetryOptions.getTryTimeoutDuration().equals(defaultRequestRetryOptions.getTryTimeoutDuration()));
Assert.isTrue(requestRetryOptions.getRetryDelay().equals(Duration.ofMillis(retryDelayValue)));
Assert.isTrue(requestRetryOptions.getMaxRetryDelay().equals(Duration.ofMillis(maxRetryDelayValue)));
assertEquals(requestRetryOptions.getSecondaryHost(),defaultRequestRetryOptions.getSecondaryHost());
assertEquals(requestRetryOptions.getSecondaryHost(), defaultRequestRetryOptions.getSecondaryHost());
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment