Skip to content

Commit

Permalink
Setting load factors
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoutanov committed Jul 18, 2019
1 parent 651e601 commit 4ee8afe
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/test/java/com/obsidiandynamics/indigo/EgressTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void testFunction_parallel() throws InterruptedException {
}

private void testFunction(int actors, int runs, boolean parallel) throws InterruptedException {
final Set<ActorRef> doneRuns = new HashSet<>();
final Set<ActorRef> doneRuns = new HashSet<>(actors, 1f);

system
.addExecutor(EXECUTOR).named("custom")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void testFanInBiased() {
}

private void test(int actors, int runs, int fanIn, int sinkBias) {
final Set<ActorRef> doneRuns = new HashSet<>();
final Set<ActorRef> doneRuns = new HashSet<>(actors * (fanIn + 1), 1f);

new TestActorSystemConfig() {}
.createActorSystem()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private Summary test(Config c) {
throw new IllegalArgumentException("Seed pairs cannot be greater than total number of pairs");

final LogConfig log = c.log;
final Set<DriverState> states = new HashSet<>();
final Set<DriverState> states = new HashSet<>(c.actors, 1f);
final Summary summary = new Summary();

if (log.stages) log.out.format("Warming up...\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public final class RequestResponseTest implements IndigoTestSupport {
public void testRequestResponse() {
final int actors = 5;
final int runs = 10;
final Set<ActorRef> doneRuns = new HashSet<>();
final Set<ActorRef> doneRuns = new HashSet<>(actors, 1f);

new TestActorSystemConfig() {}
.createActorSystem()
Expand All @@ -46,7 +46,7 @@ public void testRequestResponse() {

@Test
public void testUnsolicitedReply_toSenderOf() {
final Set<String> receivedRoles = new HashSet<>();
final Set<String> receivedRoles = new HashSet<>(2, 1f);
new TestActorSystemConfig() {}
.createActorSystem()
.on(DRIVER).cue((a, m) -> {
Expand All @@ -68,7 +68,7 @@ public void testUnsolicitedReply_toSenderOf() {

@Test
public void testUnsolicitedReply_reply() {
final Set<String> receivedRoles = new HashSet<>();
final Set<String> receivedRoles = new HashSet<>(1, 1f);
new TestActorSystemConfig() {}
.createActorSystem()
.on(DRIVER).cue((a, m) -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public final class StatelessChainTest implements IndigoTestSupport {
public void test() {
final int actors = 5;
final int runs = 10;
final Set<ActorRef> doneRuns = new HashSet<>();
final Set<ActorRef> doneRuns = new HashSet<>(actors, 1f);

new TestActorSystemConfig() {}
.createActorSystem()
Expand Down

0 comments on commit 4ee8afe

Please sign in to comment.