containerd / fifo

fifo pkg for Go
https://containerd.io
Apache License 2.0
87 stars 30 forks source link

fifo_test: Add 2 tests for closing after reading #42

Closed sameo closed 2 years ago

sameo commented 2 years ago

The first test verifies that a Read() unblocks when we're closing the reader.

The second test verifies that a Read() also unblocks when we're closing the reader, even if a writer is pushing some bytes from the other end of the pipe.

Signed-off-by: Samuel Ortiz s.ortiz@apple.com