{"action":"created","issue":{"url":"https://api.github.com/repos/Hoverbear/raft-rs/issues/61","labels_url":"https://api.github.com/repos/Hoverbear/raft-rs/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/Hoverbear/raft-rs/issues/61/comments","events_url":"https://api.github.com/repos/Hoverbear/raft-rs/issues/61/events","html_url":"https://github.com/Hoverbear/raft-rs/issues/61","id":95340221,"number":61,"title":"Flaky tests on OSX","user":{"login":"danburkert","id":160242,"avatar_url":"https://avatars.githubusercontent.com/u/160242?v=3","gravatar_id":"","url":"https://api.github.com/users/danburkert","html_url":"https://github.com/danburkert","followers_url":"https://api.github.com/users/danburkert/followers","following_url":"https://api.github.com/users/danburkert/following{/other_user}","gists_url":"https://api.github.com/users/danburkert/gists{/gist_id}","starred_url":"https://api.github.com/users/danburkert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danburkert/subscriptions","organizations_url":"https://api.github.com/users/danburkert/orgs","repos_url":"https://api.github.com/users/danburkert/repos","events_url":"https://api.github.com/users/danburkert/events{/privacy}","received_events_url":"https://api.github.com/users/danburkert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Hoverbear/raft-rs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Hoverbear/raft-rs/labels/testing","name":"testing","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-16T03:23:49Z","updated_at":"2015-12-14T03:34:48Z","closed_at":null,"body":"Many of the server.rs tests will fail eventually if run in a loop on OSX.  The\r\nproblem manifests as failed calls to `stream_shutdown` or `client_connected`.\r\nThe test may also hang indefinitely, which is a side effect of how we are\r\ncurrently testing for shutdown in `stream_shutdown`.\r\n\r\nIt's unclear at this point whether this is due to misuse of the MIO APIs in\r\nserver.rs, because of a bug in MIO, or even kqueue itself.\r\n\r\nPotentially incomplete list of flaky tests:\r\n\r\n* `test_invalid_client_message`\r\n* `test_invalid_accept`\r\n* `test_unreachable_peer_reconnect`\r\n* `test_peer_accept`\r\n"},"comment":{"url":"https://api.github.com/repos/Hoverbear/raft-rs/issues/comments/164333343","html_url":"https://github.com/Hoverbear/raft-rs/issues/61#issuecomment-164333343","issue_url":"https://api.github.com/repos/Hoverbear/raft-rs/issues/61","id":164333343,"user":{"login":"danburkert","id":160242,"avatar_url":"https://avatars.githubusercontent.com/u/160242?v=3","gravatar_id":"","url":"https://api.github.com/users/danburkert","html_url":"https://github.com/danburkert","followers_url":"https://api.github.com/users/danburkert/followers","following_url":"https://api.github.com/users/danburkert/following{/other_user}","gists_url":"https://api.github.com/users/danburkert/gists{/gist_id}","starred_url":"https://api.github.com/users/danburkert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danburkert/subscriptions","organizations_url":"https://api.github.com/users/danburkert/orgs","repos_url":"https://api.github.com/users/danburkert/repos","events_url":"https://api.github.com/users/danburkert/events{/privacy}","received_events_url":"https://api.github.com/users/danburkert/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T03:34:48Z","updated_at":"2015-12-14T03:34:48Z","body":"OK it definitely seems like this is invalid on OS X.  I changed one of the MIO [unit tests](https://github.com/danburkert/mio/commit/e6cb5776734d5c6ba1923da63440f984b25159b3) to immediately write to a socket, and it now fails on OS X (but still passes on Linux).  I don't really want to give up the aggressive write optimization, so we need to have another way to know when the socket is connected."}}