Skip to content

Commit

Permalink
Fixed SemaphoreBulkheadTest
Browse files Browse the repository at this point in the history
  • Loading branch information
RobWin committed Apr 28, 2022
1 parent f510a8e commit f92e6bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"java.configuration.updateBuildConfiguration": "automatic",
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m"
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx4G -Xms100m"
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ public class BulkheadFutureTest {
private BulkheadConfig config;

@Before
@SuppressWarnings("unchecked")
public void setUp() {
helloWorldService = mock(HelloWorldService.class);
helloWorldService = mock(HelloWorldService.class);
future = mock(Future.class);
config = BulkheadConfig.custom()
.maxConcurrentCalls(1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void shouldRejectNonPositiveDuration() {
final long zeroInterval = 0;
final long positiveInterval = 100;

List<Try> tries = List.of(
List<Try<IntervalFunction>> tries = List.of(
Try.of(() -> IntervalFunction.of(negativeDuration)),
Try.of(() -> IntervalFunction.of(zeroDuration)),

Expand Down
2 changes: 1 addition & 1 deletion resilience4j-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ sonarqube.skipProject = true
dependencies {
implementation project(':resilience4j-core')
implementation(libraries.vavr)
implementation(libraries.rxjava2)
api(libraries.rxjava2)
}
ext.moduleName = 'io.github.resilience4j.test'

0 comments on commit f92e6bc

Please sign in to comment.