Skip to content

Commit 087285e

Browse files
committed
Remove usages of Command.schedule()
In WPILib v2026 it will be deprecated.
1 parent da597cd commit 087285e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testing/src/main/java/com/team2813/lib2813/testing/junit/jupiter/WPILibExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public CommandTester resolveParameter(
8989
ParameterContext parameterContext, ExtensionContext extensionContext) {
9090
return command -> {
9191
CommandScheduler scheduler = CommandScheduler.getInstance();
92-
command.schedule();
92+
scheduler.schedule(command);
9393
do {
9494
scheduler.run();
9595
} while (scheduler.isScheduled(command));

0 commit comments

Comments
 (0)