<p><b>@miri64</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11930#discussion_r327993261">tests/gnrc_tcp/tests/04-receive_data.py</a>:</p>
<pre style='color:#555'>> +    # Verify that RIOT Applications internal buffer can hold test data.
+    assert setup_internal_buffer(child) >= data_len
+
+    server_handle = threading.Thread(target=tcp_server, args=(port, data))
+    server_handle.start()
+
+    target_addr = get_host_ll_addr(get_host_tap_device()) + '%' + get_riot_if_id(child)
+
+    # Setup RIOT Node to connect to Hostsystems TCP Server
+    child.sendline('gnrc_tcp_tcb_init')
+    child.sendline('gnrc_tcp_open_active AF_INET6 ' + target_addr + " " + str(port) + ' 0')
+    child.expect_exact('gnrc_tcp_open_active: returns 0')
+
+    # Accept Data sent by the host system
+    child.sendline('gnrc_tcp_recv 0 ' + str(data_len))
+    child.expect_exact('gnrc_tcp_recv: received ' + str(data_len))
</pre>
<p>This is not synchronized with <code>tcp_server</code> so you might run into a race condition were the data is not sent yet.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11930?email_source=notifications&email_token=ABE7WYCHB2Q553QESLABU33QLMONFA5CNFSM4IHTRDD2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCF2WUUI#pullrequestreview-292907601">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYHCQBGF73TDL2K5QYTQLMONFANCNFSM4IHTRDDQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYEBTXOH6F5RK7HKHOTQLMONFA5CNFSM4IHTRDD2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCF2WUUI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11930?email_source=notifications\u0026email_token=ABE7WYCHB2Q553QESLABU33QLMONFA5CNFSM4IHTRDD2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCF2WUUI#pullrequestreview-292907601",
"url": "https://github.com/RIOT-OS/RIOT/pull/11930?email_source=notifications\u0026email_token=ABE7WYCHB2Q553QESLABU33QLMONFA5CNFSM4IHTRDD2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCF2WUUI#pullrequestreview-292907601",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>