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
8b54b3f5
Commit
8b54b3f5
authored
Dec 02, 2021
by
Tigran Mkrtchyan
☕
Browse files
driver: more test for cancel
parent
34971402
Pipeline
#13868
passed with stages
in 3 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/dcache/nearline/cta/CtaNearlineStorageTest.java
View file @
8b54b3f5
...
...
@@ -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
{
...
...
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