From 13ecd55130d8a53418035656fd1235588769c780 Mon Sep 17 00:00:00 2001 From: "Cameron (3539)" Date: Sun, 3 Nov 2024 21:40:40 -0500 Subject: [PATCH] Update VisionSourceManagerTest.java --- .../vision/processes/VisionSourceManagerTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/photon-core/src/test/java/org/photonvision/vision/processes/VisionSourceManagerTest.java b/photon-core/src/test/java/org/photonvision/vision/processes/VisionSourceManagerTest.java index db8a3969ba..d369012b13 100644 --- a/photon-core/src/test/java/org/photonvision/vision/processes/VisionSourceManagerTest.java +++ b/photon-core/src/test/java/org/photonvision/vision/processes/VisionSourceManagerTest.java @@ -62,7 +62,7 @@ public void visionSourceTest() { config4.usbVID = 5; config4.usbPID = 6; - CameraInfo info1 = new CameraInfo(0, "dev/video0", "testVideo", new String[0], 1, 2); + CameraInfo info1 = new CameraInfo(0, "dev/video0", "testVideo", new String[]{"/usb/path/0"}, 1, 2); cameraInfos.add(info1); @@ -73,7 +73,7 @@ public void visionSourceTest() { assertTrue(inst.knownCameras.contains(info1)); assertEquals(2, inst.unmatchedLoadedConfigs.size()); - CameraInfo info2 = new CameraInfo(0, "dev/video1", "secondTestVideo", new String[0], 2, 3); + CameraInfo info2 = new CameraInfo(0, "dev/video1", "secondTestVideo", new String[]{"/usb/path/1"}, 2, 3); cameraInfos.add(info2); @@ -388,6 +388,7 @@ public void testInhibitPathChangeIdenticalCams() { new CameraInfo( 0, "/dev/video11", "Arducam OV2311 USB Camera", CAM1_OLD_PATHS, 3141, 25446); CameraInfo info2 = + new CameraInfo( 0, "/dev/video12", "Arducam OV2311 USB Camera", CAM2_NEW_PATH, 3141, 25446);