提交 8511ae2f 编写于 作者: G GoLancer 提交者: Jiangtao Hu

framework: fix timer component unit test fail

上级 871598b0
......@@ -36,6 +36,7 @@ class Component_Timer : public TimerComponent {
TEST(TimerComponent, timertest) {
ret_proc = true;
ret_init = true;
cyber::Init("timer component test");
apollo::cyber::proto::TimerComponentConfig compcfg;
compcfg.set_name("driver");
compcfg.set_interval(100);
......@@ -48,6 +49,7 @@ TEST(TimerComponent, timertest) {
TEST(TimerComponentFalse, timerfail) {
ret_proc = false;
ret_init = false;
cyber::Init("timer component test");
apollo::cyber::proto::TimerComponentConfig compcfg;
compcfg.set_name("driver1");
compcfg.set_interval(100);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册