mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 07:13:34 +08:00
Reset parameters in test setup, not teardown
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
class CollisionPreventionTest : public ::testing::Test
|
class CollisionPreventionTest : public ::testing::Test
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void TearDown() override
|
void SetUp() override
|
||||||
{
|
{
|
||||||
param_reset_all();
|
param_reset_all();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
class ParameterTest : public ::testing::Test
|
class ParameterTest : public ::testing::Test
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void TearDown() override
|
void SetUp() override
|
||||||
{
|
{
|
||||||
param_reset_all();
|
param_reset_all();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user