Commit e6cf4df7 authored by Carlos Natalino's avatar Carlos Natalino
Browse files

Adjusting the tests to match the cluster indices required.

parent c0d4f085
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ def test_detect_attack(
    optical_attack_detector_client: OpticalAttackDetectorClient,
):
    message = dbscan.DetectionResponse()
    message.cluster_indices.extend([0, 1, -1, -1, -1])
    message.cluster_indices.extend([0, 1] * 5 + [-1] * 10)

    with patch(
        "opticalattackdetector.service.OpticalAttackDetectorServiceServicerImpl.attack_mitigator_client"