Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34fce77d authored by Charlie Boutier's avatar Charlie Boutier
Browse files

PandoraServer: Fix sdp test for movable service

Fix SDP/SR/BRW/BV-02-C
Test: atest pts-bot:SDP/SR/BRW/BV-02-C
Bug: 274981946
Change-Id: Ife029db1892073c8e64d395792e0876ebb832e88
parent 7630740b
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -116,9 +116,15 @@ class SDPProxy(ProfileProxy):
        optional_services = [
            "Android Auto Compatibility",
        ]
        movable_services = [
            "Message Access Server",
        ]
        # yapf: enable

        optional_not_present = lambda service: service in optional_services and service not in service_names

        test.assertEqual(service_names, list(filterfalse(optional_not_present, expected_services)))
        expected_services_sorted = sorted(expected_services, key=lambda key: key in movable_services)
        service_names_sorted = sorted(service_names, key=lambda key: key in movable_services)

        test.assertEqual(service_names_sorted, list(filterfalse(optional_not_present, expected_services_sorted)))
        return "OK"