Fix the stopping of the container in the ContainerSuite tests 33/22433/2
authorLukasz Pawelczyk <l.pawelczyk@partner.samsung.com>
Tue, 3 Jun 2014 11:42:00 +0000 (13:42 +0200)
committerJan Olszak <j.olszak@samsung.com>
Thu, 5 Jun 2014 10:32:32 +0000 (03:32 -0700)
commit61a6814abd2f4322a06014a0fe64de2bd0dda708
tree2aa0429b8a9909a60069c49278dd99cfa0772c0c
parent486cd8b4004cebce5bcd39f391a80fa88039242a
Fix the stopping of the container in the ContainerSuite tests

[Bug/Feature]   The test took 10 seconds cause we issued a stop command
                before the container had a chance to start, effectively ignoring
                the stop command. The 10 seconds timeout triggered after which
                the container had been destroyed.
[Cause]         There is no proper way to know that the system inside the
                container has booted.
[Solution]      Add some small timeout to allow the container to start properly.
                Same thing is done in ContainerAdminSuite. There doesn't seem to
                be a better way for that.
[Verification]  Built, installed and run the tests.

Change-Id: I837588f93b335adab4ac5561b3a686af602e0c15
Signed-off-by: Lukasz Pawelczyk <l.pawelczyk@partner.samsung.com>
tests/unit_tests/server/ut-container-admin.cpp
tests/unit_tests/server/ut-container.cpp