mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Change C++ WaitCommand to use units (#1865)
Also remove unique_ptr usage.
This commit is contained in:
@@ -18,7 +18,7 @@ class CommandDecoratorTest : public CommandTestBase {};
|
||||
TEST_F(CommandDecoratorTest, WithTimeoutTest) {
|
||||
CommandScheduler scheduler = GetScheduler();
|
||||
|
||||
auto command = RunCommand([] {}, {}).WithTimeout(.1);
|
||||
auto command = RunCommand([] {}, {}).WithTimeout(.1_s);
|
||||
|
||||
scheduler.Schedule(&command);
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ class WaitCommandTest : public CommandTestBase {};
|
||||
TEST_F(WaitCommandTest, WaitCommandScheduleTest) {
|
||||
CommandScheduler scheduler = GetScheduler();
|
||||
|
||||
WaitCommand command(.1);
|
||||
WaitCommand command(.1_s);
|
||||
|
||||
scheduler.Schedule(&command);
|
||||
scheduler.Run();
|
||||
|
||||
Reference in New Issue
Block a user