Commit 69b23051 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

QoS Profile component:

- Corrected unitary test
parent ae0fcdea
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -92,9 +92,9 @@ def test_get_qos_profile(qos_profile_client: QoSProfileClient):

def test_get_qos_profiles(qos_profile_client: QoSProfileClient):
    qos_profile = create_qos_profile_from_json(qos_profile_data)
    qos_profiles_got = list(qos_profile_client.GetQoSProfiles(Empty()))
    the_qos_profile = [q for q in qos_profiles_got if q.qos_profile_id == qos_profile.qos_profile_id]
    qos_profiles_got = qos_profile_client.GetQoSProfiles(Empty())
    LOGGER.info('qos_profile_data = {:s}'.format(grpc_message_to_json_string(qos_profiles_got)))
    the_qos_profile = [q for q in qos_profiles_got.qos_profiles if q.qos_profile_id == qos_profile.qos_profile_id]
    assert len(the_qos_profile) == 1
    assert qos_profile == the_qos_profile[0]