Hoverbear / old-raft-rs

[Incomplete] A Raft implementation in Rust
https://hoverbear.github.io/raft-rs/raft/
MIT License
266 stars 41 forks source link

Reduce test flakiness on OSX #60

Closed danburkert closed 9 years ago

danburkert commented 9 years ago

Many of the server.rs tests will fail eventually if run in a loop on OSX. This commit reduces the likelyhood of failures, but issues still remain. The problem manifests as failed calls to stream_shutdown or client_connected. The test may also hang indefinitely, which is a side effect of how we are currently testing for shutdown in stream_shutdown.

It's unclear at this point whether this is due to misuse of the MIO APIs in server.rs or because of a bug in MIO, or even kqueue itself.

Potentially incomplete list of tests which remain flaky after this patch:

Hoverbear commented 9 years ago

@danburkert Can you yank 24398b7? I have it in #62.

danburkert commented 9 years ago

Can you yank 24398b7? I have it in #62.

done.

Hoverbear commented 9 years ago

@homu r+

homu commented 9 years ago

:pushpin: Commit fe863f1 has been approved by Hoverbear

homu commented 9 years ago

:hourglass: Testing commit fe863f1 with merge a372f46...

homu commented 9 years ago

:sunny: Test successful - status