summaryrefslogtreecommitdiff
path: root/tests/tcp.c
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2013-03-14 15:17:35 +0100
committerMartin Sustrik <sustrik@250bpm.com>2013-03-14 15:17:35 +0100
commit6bfeceaed22efcb19211d9c5b2e7f32a82e1087d (patch)
tree1731ef6b1b78986a2279d157d8f6a739fd13bc90 /tests/tcp.c
parent07c641e1842237e9342b15d73f63f901bbee15af (diff)
downloadnanomsg-6bfeceaed22efcb19211d9c5b2e7f32a82e1087d.tar.gz
tcp and ipc tests updated to use non-VSM messages.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'tests/tcp.c')
-rw-r--r--tests/tcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tcp.c b/tests/tcp.c
index 3dfa327..a8c1312 100644
--- a/tests/tcp.c
+++ b/tests/tcp.c
@@ -107,13 +107,13 @@ int main ()
/* Batch transfer test. */
for (i = 0; i != 100; ++i) {
- rc = nn_send (sc, "XYZ", 3, 0);
+ rc = nn_send (sc, "0123456789012345678901234567890123456789", 40, 0);
errno_assert (rc >= 0);
- nn_assert (rc == 3);
+ nn_assert (rc == 40);
rc = nn_recv (sb, buf, sizeof (buf), 0);
errno_assert (rc >= 0);
- nn_assert (rc == 3);
+ nn_assert (rc == 40);
}
rc = nn_close (sc);