{"action":"created","issue":{"url":"https://api.github.com/repos/btcsuite/btcd/issues/766","repository_url":"https://api.github.com/repos/btcsuite/btcd","labels_url":"https://api.github.com/repos/btcsuite/btcd/issues/766/labels{/name}","comments_url":"https://api.github.com/repos/btcsuite/btcd/issues/766/comments","events_url":"https://api.github.com/repos/btcsuite/btcd/issues/766/events","html_url":"https://github.com/btcsuite/btcd/issues/766","id":177867320,"number":766,"title":"Nondeterministic test failure - \"unable to setup test chain:  the client has been disconnected\"","user":{"login":"chris-martin","id":399718,"avatar_url":"https://avatars.githubusercontent.com/u/399718?v=3","gravatar_id":"","url":"https://api.github.com/users/chris-martin","html_url":"https://github.com/chris-martin","followers_url":"https://api.github.com/users/chris-martin/followers","following_url":"https://api.github.com/users/chris-martin/following{/other_user}","gists_url":"https://api.github.com/users/chris-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-martin/subscriptions","organizations_url":"https://api.github.com/users/chris-martin/orgs","repos_url":"https://api.github.com/users/chris-martin/repos","events_url":"https://api.github.com/users/chris-martin/events{/privacy}","received_events_url":"https://api.github.com/users/chris-martin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-19T18:57:32Z","updated_at":"2016-09-20T16:56:32Z","closed_at":null,"body":"When I run the tests, sometimes they pass, but about 2/3 of the time they fail like this:\r\n\r\n```\r\nunable to setup test chain:  the client has been disconnected\r\nFAIL    github.com/btcsuite/btcd        0.633s\r\nok      github.com/btcsuite/btcd/addrmgr        0.187s\r\nok      github.com/btcsuite/btcd/blockchain     0.558s\r\nok      github.com/btcsuite/btcd/blockchain/indexers    0.063s\r\nok      github.com/btcsuite/btcd/btcec  2.442s\r\nok      github.com/btcsuite/btcd/btcjson        0.027s\r\nok      github.com/btcsuite/btcd/chaincfg       0.010s\r\nok      github.com/btcsuite/btcd/chaincfg/chainhash     0.032s\r\n?       github.com/btcsuite/btcd/cmd/addblock   [no test files]\r\n?       github.com/btcsuite/btcd/cmd/btcctl     [no test files]\r\n?       github.com/btcsuite/btcd/cmd/findcheckpoint     [no test files]\r\n?       github.com/btcsuite/btcd/cmd/gencerts   [no test files]\r\nok      github.com/btcsuite/btcd/database       0.079s\r\n?       github.com/btcsuite/btcd/database/cmd/dbtool    [no test files]\r\nok      github.com/btcsuite/btcd/database/ffldb 1.705s\r\nok      github.com/btcsuite/btcd/database/internal/treap        0.047s\r\n?       github.com/btcsuite/btcd/limits [no test files]\r\nok      github.com/btcsuite/btcd/mempool        0.112s\r\n?       github.com/btcsuite/btcd/mining [no test files]\r\nok      github.com/btcsuite/btcd/peer   0.039s\r\nunable to setup test chain:  the client has been disconnected\r\nFAIL    github.com/btcsuite/btcd/rpctest        0.538s\r\nok      github.com/btcsuite/btcd/txscript       0.653s\r\nok      github.com/btcsuite/btcd/wire   0.586s\r\n```"},"comment":{"url":"https://api.github.com/repos/btcsuite/btcd/issues/comments/248363283","html_url":"https://github.com/btcsuite/btcd/issues/766#issuecomment-248363283","issue_url":"https://api.github.com/repos/btcsuite/btcd/issues/766","id":248363283,"user":{"login":"Roasbeef","id":998190,"avatar_url":"https://avatars.githubusercontent.com/u/998190?v=3","gravatar_id":"","url":"https://api.github.com/users/Roasbeef","html_url":"https://github.com/Roasbeef","followers_url":"https://api.github.com/users/Roasbeef/followers","following_url":"https://api.github.com/users/Roasbeef/following{/other_user}","gists_url":"https://api.github.com/users/Roasbeef/gists{/gist_id}","starred_url":"https://api.github.com/users/Roasbeef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roasbeef/subscriptions","organizations_url":"https://api.github.com/users/Roasbeef/orgs","repos_url":"https://api.github.com/users/Roasbeef/repos","events_url":"https://api.github.com/users/Roasbeef/events{/privacy}","received_events_url":"https://api.github.com/users/Roasbeef/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T16:56:32Z","updated_at":"2016-09-20T16:56:32Z","body":"Hmmm that's odd, if you tack on the `-x` flag to the end of your `go test ./...` command you can see that  all the commands are being executing in parallel. While if one adds a `-p 1`, then they all flow serially. \r\n\r\nTaking a closer look at your initial post, it looks like the client connects, but then some error causes the connection to be severed, either by `btcd` or due to a client side error. \r\n\r\nHave you made any local modifications? Your current bash fragment should be equivalent to running all the tests recursively with the `-p 1` flag. "}}
{"actor":{"display_login":"Roasbeef"}}