diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2013-12-19 17:01:24 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-01-16 12:17:24 +0100 |
commit | 68c74f59a40f4e4ad897e2ee7f5067ec2cac2012 (patch) | |
tree | 51e180c06f30c605fccfbf43f78e455c043fc3fc /openbsc/tests/mgcp | |
parent | 1b653af283c2d7430923a816364d732431b831d9 (diff) |
mgcp/test: Reset pkt_period_* after each test
Currently these value may leak into the next test.
This patch will reset them after each message has been processed.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests/mgcp')
-rw-r--r-- | openbsc/tests/mgcp/mgcp_test.c | 2 | ||||
-rw-r--r-- | openbsc/tests/mgcp/mgcp_test.ok | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/tests/mgcp/mgcp_test.c b/openbsc/tests/mgcp/mgcp_test.c index 7653a0d45..538dc9fa2 100644 --- a/openbsc/tests/mgcp/mgcp_test.c +++ b/openbsc/tests/mgcp/mgcp_test.c @@ -366,6 +366,8 @@ static void test_messages(void) endp->net_end.packet_duration_ms = -1; endp->bts_end.output_enabled = 0; endp->net_end.output_enabled = 0; + endp->local_options.pkt_period_min = 0; + endp->local_options.pkt_period_max = 0; endp->conn_mode = -1; } diff --git a/openbsc/tests/mgcp/mgcp_test.ok b/openbsc/tests/mgcp/mgcp_test.ok index d5fb56f6a..43a740216 100644 --- a/openbsc/tests/mgcp/mgcp_test.ok +++ b/openbsc/tests/mgcp/mgcp_test.ok @@ -45,7 +45,7 @@ Requested packetetization period: 20-20 Connection mode: 2, BTS output disabled, NET output disabled Testing DLCX Detected packet duration: 20 -Requested packetetization period: 20-20 +Requested packetization period not set Connection mode: 0, BTS output enabled, NET output enabled Testing CRCX_ZYN Packet duration not set |