Skip to content

Commit

Permalink
FinalizeTest: Give finalization some slack
Browse files Browse the repository at this point in the history
The test still sometimes fails, let's wait a little longer.
  • Loading branch information
kohlschuetter committed Jul 27, 2023
1 parent b959d34 commit 050f3bd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ protected void postRunCheck(Process process, Object linesBeforeObj) throws TestA
List<String> linesBefore = (List<String>) linesBeforeObj;
try {
List<String> linesAfter = null;
for (int i = 0; i < 10; i++) {
for (int i = 0; i < 50; i++) {
Thread.sleep(100);
linesAfter = lsofUnixSockets(process.pid());
if (linesAfter.size() < linesBefore.size()) {
if (!process.isAlive()) {
break;
}
if (!process.isAlive()) {
linesAfter = lsofUnixSockets(process.pid());
if (linesAfter.size() < linesBefore.size()) {
break;
}
}
Expand Down

0 comments on commit 050f3bd

Please sign in to comment.