Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ProActive
scheduling
Commits
5e318d0c
Unverified
Commit
5e318d0c
authored
Nov 08, 2021
by
Fabien Viale
Committed by
GitHub
Nov 08, 2021
Browse files
Merge pull request #3984 from fviale/master
Recover tests : add wait method when acquiring nodes
parents
95ea3788
953753d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
rm/rm-server/src/test/java/functionaltests/nodesrecovery/RecoverDefaultInfrastructureTest.java
View file @
5e318d0c
...
...
@@ -121,6 +121,7 @@ public class RecoverDefaultInfrastructureTest extends RMFunctionalTest {
RMTHelper
.
log
(
"Acquiring "
+
NODE_NUMBER
+
" nodes with token="
+
TOKEN
);
NodeSet
nodeSet
=
this
.
rmHelper
.
getResourceManager
().
getNodes
(
criteria
);
Assert
.
assertEquals
(
NODE_NUMBER
,
nodeSet
.
size
());
this
.
rmHelper
.
waitForAnyMultipleNodeEvent
(
RMEventType
.
NODE_STATE_CHANGED
,
NODE_NUMBER
);
this
.
rmHelper
.
getResourceManager
().
releaseNodes
(
nodeSet
);
this
.
rmHelper
.
waitForAnyMultipleNodeEvent
(
RMEventType
.
NODE_STATE_CHANGED
,
NODE_NUMBER
);
}
...
...
rm/rm-server/src/test/java/functionaltests/nodesrecovery/RecoverLocalInfrastructureTest.java
View file @
5e318d0c
...
...
@@ -178,6 +178,7 @@ public class RecoverLocalInfrastructureTest extends RMFunctionalTest {
RMTHelper
.
log
(
"Acquiring "
+
NODE_NUMBER
+
" nodes with token="
+
TOKEN
);
NodeSet
nodeSet
=
this
.
rmHelper
.
getResourceManager
().
getNodes
(
criteria
);
Assert
.
assertEquals
(
NODE_NUMBER
,
nodeSet
.
size
());
this
.
rmHelper
.
waitForAnyMultipleNodeEvent
(
RMEventType
.
NODE_STATE_CHANGED
,
NODE_NUMBER
);
this
.
rmHelper
.
getResourceManager
().
releaseNodes
(
nodeSet
);
this
.
rmHelper
.
waitForAnyMultipleNodeEvent
(
RMEventType
.
NODE_STATE_CHANGED
,
NODE_NUMBER
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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