From f4dec5d8ac2096fd90cf3907c96b057e2e532165 Mon Sep 17 00:00:00 2001 From: Kevin Cooney Date: Sun, 12 Oct 2025 22:58:26 -0700 Subject: [PATCH] Remove usages of Command.schedule() In WPILib v2026 it will be deprecated (see https://github.com/wpilibsuite/allwpilib/pull/7072). --- .../team2813/lib2813/testing/junit/jupiter/WPILibExtension.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/src/main/java/com/team2813/lib2813/testing/junit/jupiter/WPILibExtension.java b/testing/src/main/java/com/team2813/lib2813/testing/junit/jupiter/WPILibExtension.java index 262b70a5..2fbf0474 100644 --- a/testing/src/main/java/com/team2813/lib2813/testing/junit/jupiter/WPILibExtension.java +++ b/testing/src/main/java/com/team2813/lib2813/testing/junit/jupiter/WPILibExtension.java @@ -89,7 +89,7 @@ public CommandTester resolveParameter( ParameterContext parameterContext, ExtensionContext extensionContext) { return command -> { CommandScheduler scheduler = CommandScheduler.getInstance(); - command.schedule(); + scheduler.schedule(command); do { scheduler.run(); } while (scheduler.isScheduled(command));