Skip to content

Commit

Permalink
Corrected InMemoryRetryingActivityHandler reference
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhav-db committed May 2, 2023
1 parent 784b2c7 commit 7e21035
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.finos.springbot.teams.handlers.retry;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
Expand Down Expand Up @@ -115,7 +114,7 @@ public void testWorksFirstTime() throws InterruptedException, ExecutionException
passEvery = 1; // always succeeds
long now = System.currentTimeMillis();

RetryingActivityHandler retry = new RetryingActivityHandler(conv);
InMemoryRetryingActivityHandler retry = new InMemoryRetryingActivityHandler(conv);

CompletableFuture<ResourceResponse> cf = retry.handleActivity(new Activity("dummy"), dummyChat1);

Expand All @@ -125,8 +124,8 @@ public void testWorksFirstTime() throws InterruptedException, ExecutionException

@Test
public void testMultipleTimes() throws Exception {
for (int i = 0; i <10; i++) {
RetryingActivityHandler retry = new RetryingActivityHandler(conv);
for (int i = 0; i <5; i++) {
InMemoryRetryingActivityHandler retry = new InMemoryRetryingActivityHandler(conv);
CompletableFuture<ResourceResponse> cf = retry.handleActivity(new Activity("dummy"), dummyChat1);
ResourceResponse rr = cf.get();
}
Expand Down

0 comments on commit 7e21035

Please sign in to comment.