# Network Programming in Elixir and Erlang (B1.0): Test fails (p25)

**URL:** <https://forum.devtalk.com/t/network-programming-in-elixir-and-erlang-b1-0-test-fails-p25/167910>\
**Category:** PragProg Customers\
**Tags:** book-network-programming-in-elixir-and-erlang, errata\
**Created:** [28 August 2024 14:28 UTC](https://forum.devtalk.com/t/network-programming-in-elixir-and-erlang-b1-0-test-fails-p25/167910 "2024-08-28T14:28:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dan](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@dan](https://forum.devtalk.com/u/dan)\
**Post date:** [20 November 2024 18:19 UTC](https://forum.devtalk.com/t/network-programming-in-elixir-and-erlang-b1-0-test-fails-p25/167910/2 "2024-11-20T18:19:33Z")

</div>

I could not get the single call to :gen\_tcp.recv/3 to pull in all the data from the two :gen\_tcp.send/2 calls as written. I consequently wrapped the :gen\_tcp.recv/3 in a recursive call and subsequently was able to get the test to pass as written.

---

_[View the full topic](https://forum.devtalk.com/t/network-programming-in-elixir-and-erlang-b1-0-test-fails-p25/167910)._
