mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[commands] Remove unsafe default command isFinished check (#4411)
This commit is contained in:
@@ -64,12 +64,10 @@ class CommandRequirementsTest extends CommandTestBase {
|
||||
Subsystem system = new SubsystemBase() {};
|
||||
|
||||
Command missingRequirement = new WaitUntilCommand(() -> false);
|
||||
Command ends = new InstantCommand(() -> {}, system);
|
||||
|
||||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
() -> scheduler.setDefaultCommand(system, missingRequirement));
|
||||
assertThrows(IllegalArgumentException.class, () -> scheduler.setDefaultCommand(system, ends));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user