Commit 085fec6b authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

test: add testPendingRequestDecOnFlushComplete

parent fd278a18
Pipeline #12842 passed with stages
in 5 minutes and 42 seconds
......@@ -326,6 +326,21 @@ public class CtaNearlineStorageTest {
assertEquals("pending request count not zero", 0, driver.getPendingRequestsCount());
}
@Test
public void testPendingRequestDecOnFlushComplete() {
var request = mockedFlushRequest();
driver = new CtaNearlineStorage("foo", "bar");
driver.configure(drvConfig);
driver.start();
driver.flush(Set.of(request));
cta.waitToReply();
driver.getRequest("0000C9B4E3768770452E8B1B8E0232584872").completed(Set.of());
assertEquals("pending request count not zero", 0, driver.getPendingRequestsCount());
}
@Test
public void testPendingRequestDecOnStageFailedV1() {
......
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