test_container: correctly initialize robot_model

The local mocks do not care, but leaving a dangling nullptr
leads to segfaults with refactoring/new tests. :-)
This commit is contained in:
v4hn 2021-07-02 12:37:17 +02:00 committed by Michael Görner
parent 062c127b86
commit 4b1f240c21

View File

@ -196,7 +196,7 @@ protected:
Container container;
InterfacePtr dummy;
InitTest() : ::testing::Test(), dummy(new Interface) {}
InitTest() : ::testing::Test{}, robot_model{ getModel() }, dummy{ new Interface } {}
void pushInterface(bool start = true, bool end = true) {
// pretend, that the container is connected