Skip to content

Commit

Permalink
Fixed ReducedPropagationManagerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
mcweba committed Jan 17, 2024
1 parent c7fef85 commit a01e882
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void testProcessIncomingRequestWithAddQueueStorageError(TestContext conte
ArgumentCaptor<String> queuesCaptor = ArgumentCaptor.forClass(String.class);

verify(requestQueue, timeout(1000).times(1)).lockedEnqueue(requestCaptor.capture(),
queuesCaptor.capture(), eq(LOCK_REQUESTER), any(Handler.class));
queuesCaptor.capture(), eq(LOCK_REQUESTER), isNull());

// verify that request has been locked-enqueued in original queue
HttpRequest originalEnqueue = requestCaptor.getValue();
Expand Down Expand Up @@ -159,7 +159,7 @@ public void testProcessIncomingRequestStartingNewTimerAndSuccessfulStoreQueueReq
ArgumentCaptor<String> queuesCaptor = ArgumentCaptor.forClass(String.class);

verify(requestQueue, timeout(1000).times(1)).lockedEnqueue(requestCaptor.capture(),
queuesCaptor.capture(), eq(LOCK_REQUESTER), any(Handler.class));
queuesCaptor.capture(), eq(LOCK_REQUESTER), isNull());

List<HttpRequest> requests = requestCaptor.getAllValues();
List<String> queues = queuesCaptor.getAllValues();
Expand Down Expand Up @@ -212,7 +212,7 @@ public void testProcessIncomingRequestStartingNewTimerAndFailingStoreQueueReques
ArgumentCaptor<String> queuesCaptor = ArgumentCaptor.forClass(String.class);

verify(requestQueue, timeout(1000).times(1)).lockedEnqueue(requestCaptor.capture(),
queuesCaptor.capture(), eq(LOCK_REQUESTER), any(Handler.class));
queuesCaptor.capture(), eq(LOCK_REQUESTER), isNull());

List<HttpRequest> requests = requestCaptor.getAllValues();
List<String> queues = queuesCaptor.getAllValues();
Expand Down Expand Up @@ -262,7 +262,7 @@ public void testProcessIncomingRequestStartingExistingTimer(TestContext context)
ArgumentCaptor<String> queuesCaptor = ArgumentCaptor.forClass(String.class);

verify(requestQueue, timeout(1000).times(1)).lockedEnqueue(requestCaptor.capture(),
queuesCaptor.capture(), eq(LOCK_REQUESTER), any(Handler.class));
queuesCaptor.capture(), eq(LOCK_REQUESTER), isNull());

// verify that request has been locked-enqueued in original queue
HttpRequest originalEnqueue = requestCaptor.getValue();
Expand Down

0 comments on commit a01e882

Please sign in to comment.