File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,11 @@ struct DeadlineTest : testing::Test
35
35
struct RepeatTest : testing::Test
36
36
{
37
37
BT::RepeatNode root;
38
- BT::AsyncActionTest action;
38
+ BT::SyncActionTest action;
39
39
40
40
RepeatTest () : root(" repeat" , 3 ), action(" action" )
41
41
{
42
42
root.setChild (&action);
43
- action.setTime (0 );
44
43
}
45
44
~RepeatTest ()
46
45
{
@@ -51,12 +50,11 @@ struct RepeatTest : testing::Test
51
50
struct RetryTest : testing::Test
52
51
{
53
52
BT::RetryNode root;
54
- BT::AsyncActionTest action;
53
+ BT::SyncActionTest action;
55
54
56
55
RetryTest () : root(" retry" , 3 ), action(" action" )
57
56
{
58
57
root.setChild (&action);
59
- action.setTime (0 );
60
58
}
61
59
~RetryTest ()
62
60
{
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ class SyncActionTest : public ActionNodeBase
23
23
return tick_count_;
24
24
}
25
25
26
+ void resetTicks ()
27
+ {
28
+ tick_count_ = 0 ;
29
+ }
30
+
26
31
private:
27
32
bool boolean_value_;
28
33
int tick_count_;
You can’t perform that action at this time.
0 commit comments