mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 02:33:33 +08:00
Quick fix for test execution order problems (yes, singletones are hard to unittest)
This commit is contained in:
@@ -26,7 +26,9 @@ TEST(Publisher, Basic)
|
||||
|
||||
uavcan::Publisher<uavcan::mavlink::Message> publisher(sch, buffer_provider);
|
||||
|
||||
ASSERT_FALSE(uavcan::GlobalDataTypeRegistry::instance().isFrozen());
|
||||
// Manual type registration - we can't rely on the GDTR state
|
||||
uavcan::GlobalDataTypeRegistry::instance().reset();
|
||||
uavcan::DefaultDataTypeRegistrator<uavcan::mavlink::Message> _registrator;
|
||||
|
||||
/*
|
||||
* Message layout:
|
||||
|
||||
Reference in New Issue
Block a user