Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
dcache-cta
Commits
085fec6b
Commit
085fec6b
authored
Nov 10, 2021
by
Tigran Mkrtchyan
☕
Browse files
test: add testPendingRequestDecOnFlushComplete
parent
fd278a18
Pipeline
#12842
passed with stages
in 5 minutes and 42 seconds
Changes
1
Pipelines
6
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/dcache/nearline/cta/CtaNearlineStorageTest.java
View file @
085fec6b
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment