eclipse-kanto / container-management

container-management
Other
6 stars 10 forks source link

Some integration test fail due to unexpected messages #192

Closed dimitar-dimitrow closed 1 year ago

dimitar-dimitrow commented 1 year ago

Modified events are received when a container is removed, as first it's state is changed to DEAD and SoftwareUpdatable installedDependencies property is updated as well. However those messages are treated as unexpected by the integration test, where only deleted event is expected. So the following tests fail:

--- FAIL: TestCtrInstanceSuite/TestCtrInstanceOperations/test_remove_container_that_is_not_running
--- FAIL: TestCtrInstanceSuite/TestCtrInstanceOperations/test_remove_container_that_is_running_with_force
--- FAIL: TestCtrInstanceSuite/TestCtrInstanceOperations/test_remove_container_that_is_running_without_force

The handlers also can receive messages from other devices, which also leads to some occasional fails.