Skip to content

Commit

Permalink
framework: fix timer component unit test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
GoLancer authored and Jiangtao Hu committed Dec 13, 2018
1 parent 871598b commit 8511ae2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cyber/component/timer_component_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 8511ae2

Please sign in to comment.