{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1941","labels_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1941/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1941/comments","events_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1941/events","html_url":"https://github.com/ipfs/go-ipfs/issues/1941","id":114951842,"number":1941,"title":"sharness suite: ipfs name publish: “Error: failed to find any peer in table”","user":{"login":"ion1","id":39660,"avatar_url":"https://avatars.githubusercontent.com/u/39660?v=3","gravatar_id":"","url":"https://api.github.com/users/ion1","html_url":"https://github.com/ion1","followers_url":"https://api.github.com/users/ion1/followers","following_url":"https://api.github.com/users/ion1/following{/other_user}","gists_url":"https://api.github.com/users/ion1/gists{/gist_id}","starred_url":"https://api.github.com/users/ion1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ion1/subscriptions","organizations_url":"https://api.github.com/users/ion1/orgs","repos_url":"https://api.github.com/users/ion1/repos","events_url":"https://api.github.com/users/ion1/events{/privacy}","received_events_url":"https://api.github.com/users/ion1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-04T01:55:59Z","updated_at":"2015-11-08T21:31:32Z","closed_at":null,"body":"`ipfs name publish` fails with “Error: failed to find any peer in table” in the sharness suite when the daemon is running.\r\n\r\n(There are no peers intentionally, `ipfs bootstrap rm --all` is executed in `test/sharness/lib/test-lib.sh`.)"},"comment":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/comments/154875921","html_url":"https://github.com/ipfs/go-ipfs/issues/1941#issuecomment-154875921","issue_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1941","id":154875921,"user":{"login":"ion1","id":39660,"avatar_url":"https://avatars.githubusercontent.com/u/39660?v=3","gravatar_id":"","url":"https://api.github.com/users/ion1","html_url":"https://github.com/ion1","followers_url":"https://api.github.com/users/ion1/followers","following_url":"https://api.github.com/users/ion1/following{/other_user}","gists_url":"https://api.github.com/users/ion1/gists{/gist_id}","starred_url":"https://api.github.com/users/ion1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ion1/subscriptions","organizations_url":"https://api.github.com/users/ion1/orgs","repos_url":"https://api.github.com/users/ion1/repos","events_url":"https://api.github.com/users/ion1/events{/privacy}","received_events_url":"https://api.github.com/users/ion1/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T21:31:32Z","updated_at":"2015-11-08T21:31:32Z","body":"An “is daemon online” test in the beginning has a race condition. Perhaps the network connection disappears immediately after it.\r\n\r\nPerhaps it would be better to make an asynchronous/synchronous distinction.\r\n\r\nDefault: asynchronous – succeed immediately, best effort to publish the name whenever the daemon is running and online.\r\n\r\nOptional: synchronous – fail if the daemon is not running; wait until the record has been added to DHT otherwise."}}