mgcp_client_test: use "\r\n\r\n" instead of "\n\n"

The separator between MGCP and SDP section is typically "\r\n\r\n". For some
reason the test so far used "\n\n" instead, rather use the standard separator.

Change-Id: I41c73722e5fae00663bcf96de0b57b7155809a06
This commit is contained in:
Neels Hofmeyr 2018-09-03 21:07:26 +02:00
parent 1d121483f6
commit b1bb1fa187
2 changed files with 6 additions and 6 deletions

View File

@ -149,7 +149,7 @@ void test_crcx(void)
trans_id = dummy_mgcp_send(msg);
reply_to(trans_id, 200, "OK",
"I: 1\n\n"
"I: 1\r\n\r\n"
"v=0\r\n"
"o=- 1 23 IN IP4 10.9.1.120\r\n"
"s=-\r\n"
@ -336,7 +336,7 @@ void test_mgcp_client_cancel()
OSMO_ASSERT(mgcp_client_cancel(mgcp, trans_id) == 0);
fprintf(stderr, "- late response gets discarded\n");
OSMO_ASSERT(reply_to(trans_id, 200, "OK", "I: 1\n\nv=0\r\n") == -ENOENT);
OSMO_ASSERT(reply_to(trans_id, 200, "OK", "I: 1\r\n\r\nv=0\r\n") == -ENOENT);
fprintf(stderr, "- canceling again does nothing\n");
OSMO_ASSERT(mgcp_client_cancel(mgcp, trans_id) == -ENOENT);

View File

@ -11,8 +11,8 @@ M: loopback
composed response:
-----
200 1 OK
I: 1
I: 1
v=0
o=- 1 23 IN IP4 10.9.1.120
s=-
@ -141,8 +141,8 @@ M: sendrecv
composed response:
-----
200 1 OK
I: 1
I: 1
v=0
-----