mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
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:
parent
062c127b86
commit
4b1f240c21
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user