1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

feature-#192: Added additional CPPUNIT_ASSERT

This commit is contained in:
Constantino Vázquez Blanco 2010-04-28 15:06:41 +02:00
parent 0e1a364736
commit ec3184d1b0

View File

@ -197,7 +197,8 @@ public:
int oid_1 = allocate(0);
Host* host = ((HostPool*)pool)->get(oid_1, true);
CPPUNIT_ASSERT(host!=0);
// Host object should be cached. Let's update its status
host->set_state(Host::DISABLED);
pool->update(host);
@ -290,6 +291,7 @@ public:
if (i >=8 )
{
host = hp->get(oid, false);
CPPUNIT_ASSERT(host!=0);
host->disable();
hp->update(host);
}