Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
  • Loading branch information
dguggemos committed Jan 9, 2019
1 parent 3a4d5f3 commit b402d03
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ public class RetrieveConnectionStatusAggregatorActor extends AbstractActor {
private RetrieveConnectionStatusResponse theResponse;

private RetrieveConnectionStatusAggregatorActor(final Connection connection,
final ActorRef sender, final DittoHeaders dittoHeaders, final Duration timeout) {
final ActorRef sender, final DittoHeaders dittoHeaders) {
this.connection = connection;
this.timeout = extractTimeoutFromCommand(dittoHeaders);
this.sender = sender;
theResponse = RetrieveConnectionStatusResponse.of(connection.getId(), connection.getConnectionStatus(),
Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), dittoHeaders);

// one RetrieveConnectionMetricsResponse per client actor
this.expectedResponses = new HashMap<>();
Expand All @@ -59,12 +62,6 @@ private RetrieveConnectionStatusAggregatorActor(final Connection connection,
.map(consumers -> consumers * connection.getClientCount())
.sum());
}


this.sender = sender;

theResponse = RetrieveConnectionStatusResponse.of(connection.getId(), connection.getConnectionStatus(),
Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), dittoHeaders);
}

private Duration extractTimeoutFromCommand(final DittoHeaders headers) {
Expand Down

0 comments on commit b402d03

Please sign in to comment.