From 3b728d9c263c008ccaf4e561facc045950c7f522 Mon Sep 17 00:00:00 2001 From: Jim Melton Date: Mon, 15 Feb 2021 17:15:38 -0700 Subject: [PATCH] fix cast error --- src/tests/unit-tests/control-plane/gnss_block_factory_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }