diff --git a/src/tests/unit-tests/control-plane/gnss_block_factory_test.cc b/src/tests/unit-tests/control-plane/gnss_block_factory_test.cc index a20b71623..463d0a9a4 100644 --- a/src/tests/unit-tests/control-plane/gnss_block_factory_test.cc +++ b/src/tests/unit-tests/control-plane/gnss_block_factory_test.cc @@ -352,7 +352,7 @@ TEST(GNSSBlockFactoryTest, InstantiateWrongPvt) std::shared_ptr configuration = std::make_shared(); configuration->set_property("PVT.implementation", "Pepito"); auto factory = std::make_unique(); - auto pvt_ = factory->GetPVT(configuration.get()); - std::shared_ptr pvt = std::dynamic_pointer_cast(pvt_); + std::shared_ptr pvt_ = factory->GetPVT(configuration.get()); + auto pvt = std::dynamic_pointer_cast(pvt_); EXPECT_EQ(nullptr, pvt); }