Skip to content

Commit

Permalink
Fix unit tests build
Browse files Browse the repository at this point in the history
  • Loading branch information
dshil committed Oct 29, 2024
1 parent 44b4054 commit f3a33f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/ocs_core/test/test_rate_limiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace ocs {
namespace core {

TEST_CASE("Rate limiter: allow operation to be performed", "[ocs_core], [rate_limiter]") {
const Time interval = second;
const Time interval = Duration::second;

test::TestClock clock;
clock.value = 42;
Expand Down
6 changes: 3 additions & 3 deletions components/ocs_scheduler/test/test_async_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace scheduler {
TEST_CASE("Async task: run sets event in event group", "[ocs_scheduler], [async_task]") {
core::StaticEventGroup event_group;

const ITask::Event event = BIT(0);
const EventBits_t event = BIT(0);
AsyncTask task(event_group.get(), event);

// Initially, the event should not be set.
Expand All @@ -35,8 +35,8 @@ TEST_CASE("Async task: multiple runs set event correctly",
"[ocs_scheduler], [async_task]") {
core::StaticEventGroup event_group;

const ITask::Event event1 = BIT(0);
const ITask::Event event2 = BIT(1);
const EventBits_t event1 = BIT(0);
const EventBits_t event2 = BIT(1);

AsyncTask task1(event_group.get(), event1);
AsyncTask task2(event_group.get(), event2);
Expand Down

0 comments on commit f3a33f6

Please sign in to comment.