Skip to content

Commit 30e2947

Browse files
committed
fixed another oppsie
1 parent 54ccade commit 30e2947

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/test/java/org/carlmontrobotics/lib199/MotorControllerFactoryTest.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ public class MotorControllerFactoryTest extends ErrStreamTest {
1515
@Rule
1616
public TestRules.ResetSimDeviceSimData simTestRule = new TestRules.ResetSimDeviceSimData();
1717

18-
//FIXME: should this be rewritten for another motor?
19-
// @Test
20-
// // AutoClosable.close() throws Exception
21-
// public void testCreateNoErrors() throws Exception {
22-
// // Call close to free PWM ports
23-
// ((AutoCloseable)MotorControllerFactory.createTalon(0)).close();
24-
// ((AutoCloseable)MotorControllerFactory.createVictor(1)).close();
25-
// MotorControllerFactory.createSparkMax(2, MotorConfig.NEO);
26-
// assertEquals(0, errStream.toByteArray().length);
27-
// }
18+
@Test
19+
// AutoClosable.close() throws Exception
20+
public void testCreateNoErrors() throws Exception {
21+
// Call close to free PWM ports
22+
((AutoCloseable)MotorControllerFactory.createTalon(0)).close();
23+
MotorControllerFactory.createSparkMax(2, MotorConfig.NEO);
24+
assertEquals(0, errStream.toByteArray().length);
25+
}
2826

2927
}

0 commit comments

Comments
 (0)