Skip to content

Commit

Permalink
change test condition per hongli’s request
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Oct 14, 2024
1 parent cec7638 commit a45c981
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/cxx/Core/ApplicationPool/PoolTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,12 +644,15 @@ namespace tut {

// Close the session so that the process is now idle.
ProcessPtr process = currentSession->getProcess()->shared_from_this();
pid_t pid = process->getPid();
currentSession.reset();
unsigned int gen1 = process->generation;

ensure(pool->restartGroupByName(options.appRoot));
EVENTUALLY(5,
result = pool->getProcessCount() == 1;
LockGuard l(pool->syncher);
vector<ProcessPtr> processes = pool->getProcesses(false);
processes.size() > 0 && processes[0]->getPid() != pid;
);
pool->asyncGet(options, callback);
EVENTUALLY(5,
Expand Down

0 comments on commit a45c981

Please sign in to comment.