test/cxx/ApplicationPool2/ProcessTest.cpp in passenger-4.0.30 vs test/cxx/ApplicationPool2/ProcessTest.cpp in passenger-4.0.31
- old
+ new
@@ -51,12 +51,12 @@
ProcessPtr process = boost::make_shared<Process>(bg.safe,
123, "", "", adminSocket[0],
errorPipe[0], sockets, 0, 0);
process->dummy = true;
process->requiresShutdown = false;
- ensure_equals(process->utilization(), 0);
- ensure(!process->atFullCapacity());
+ ensure_equals(process->busyness(), 0);
+ ensure(!process->isTotallyBusy());
}
TEST_METHOD(2) {
// Test opening and closing sessions.
ProcessPtr process = boost::make_shared<Process>(bg.safe,
@@ -72,12 +72,12 @@
process->sessionClosed(session2.get());
ensure_equals(process->sessions, 0);
}
TEST_METHOD(3) {
- // newSession() checks out the socket with the smallest utilization number
- // and sessionClosed() restores the session utilization statistics.
+ // newSession() checks out the socket with the smallest busyness number
+ // and sessionClosed() restores the session busyness statistics.
ProcessPtr process = boost::make_shared<Process>(bg.safe,
123, "", "", adminSocket[0],
errorPipe[0], sockets, 0, 0);
process->dummy = true;
process->requiresShutdown = false;
@@ -126,14 +126,14 @@
errorPipe[0], sockets, 0, 0);
process->dummy = true;
process->requiresShutdown = false;
vector<SessionPtr> sessions;
for (int i = 0; i < 9; i++) {
- ensure(!process->atFullCapacity());
+ ensure(!process->isTotallyBusy());
SessionPtr session = process->newSession();
ensure(session != NULL);
sessions.push_back(session);
}
- ensure(process->atFullCapacity());
+ ensure(process->isTotallyBusy());
ensure(process->newSession() == NULL);
}
}