From 27eb0e6e23b4c27ea28cebaee68325245efac2ca Mon Sep 17 00:00:00 2001 From: Brenno Date: Mon, 24 May 2021 11:45:39 -0300 Subject: [PATCH] Fixed Keyframe Test --- tests/KeyFrame.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/KeyFrame.cpp b/tests/KeyFrame.cpp index ad5036524..599c973f8 100644 --- a/tests/KeyFrame.cpp +++ b/tests/KeyFrame.cpp @@ -695,8 +695,9 @@ TEST_CASE( "AttachToObject", "[libopenshot][keyframe]" ) // Tracked Data JSON auto trackedDataJson = trackedData->JsonValue(); - // Get and cast the trakcedObject - auto trackedObject_base = t.GetTrackedObject(""); + // Get and cast the trakcedObjec + std::list ids = t.GetTrackedObjectsIds(); + auto trackedObject_base = t.GetTrackedObject(ids.front()); auto trackedObject = std::make_shared(); trackedObject = std::dynamic_pointer_cast(trackedObject_base); CHECK(trackedObject == trackedData);