[commands] Remove unsafe default command isFinished check (#4411)

This commit is contained in:
Starlight220
2022-11-15 00:28:30 +02:00
committed by GitHub
parent 1269d2b901
commit 64838e6367
3 changed files with 0 additions and 10 deletions

View File

@@ -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));
}
}
}