Commit 8b54b3f5 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

driver: more test for cancel

parent 34971402
Pipeline #13868 passed with stages
in 3 minutes and 2 seconds
......@@ -433,6 +433,22 @@ public class CtaNearlineStorageTest {
}
@Test
public void testCencelByRandomUUID() {
var request = mockedStageRequest();
driver = new CtaNearlineStorage("foo", "bar");
driver.configure(drvConfig);
driver.start();
driver.stage(Set.of(request));
cta.waitToReply();
driver.cancel(UUID.randomUUID());
assertEquals("unexpected pending request queue size", 1, driver.getPendingRequestsCount());
}
void waitToComplete() {
try {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment