{"action":"opened","issue":{"url":"https://api.github.com/repos/holochain/holochain-proto/issues/686","repository_url":"https://api.github.com/repos/holochain/holochain-proto","labels_url":"https://api.github.com/repos/holochain/holochain-proto/issues/686/labels{/name}","comments_url":"https://api.github.com/repos/holochain/holochain-proto/issues/686/comments","events_url":"https://api.github.com/repos/holochain/holochain-proto/issues/686/events","html_url":"https://github.com/holochain/holochain-proto/issues/686","id":318721560,"number":686,"title":"utils_test in TestTicker failing randomly due to inappropriate precision","user":{"login":"thedavidmeister","id":629710,"avatar_url":"https://avatars2.githubusercontent.com/u/629710?v=4","gravatar_id":"","url":"https://api.github.com/users/thedavidmeister","html_url":"https://github.com/thedavidmeister","followers_url":"https://api.github.com/users/thedavidmeister/followers","following_url":"https://api.github.com/users/thedavidmeister/following{/other_user}","gists_url":"https://api.github.com/users/thedavidmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/thedavidmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thedavidmeister/subscriptions","organizations_url":"https://api.github.com/users/thedavidmeister/orgs","repos_url":"https://api.github.com/users/thedavidmeister/repos","events_url":"https://api.github.com/users/thedavidmeister/events{/privacy}","received_events_url":"https://api.github.com/users/thedavidmeister/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-29T14:30:02Z","updated_at":"2018-04-29T14:30:02Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"```\r\n  * /home/travis/gopath/src/github.com/holochain/holochain-proto/utils_test.go \r\n  Line 90:\r\n  Expected: '2'\r\n  Actual:   '3'\r\n  (Should be equal)\r\n```\r\n\r\nfor\r\n\r\n```go\r\nfunc TestTicker(t *testing.T) {\r\n\tcounter := 0\r\n\tstopper := Ticker(10*time.Millisecond, func() {\r\n\t\tcounter += 1\r\n\t})\r\n\ttime.Sleep(25 * time.Millisecond)\r\n\tstopper <- true\r\n\tConvey(\"it should have ticked twice\", t, func() {\r\n\t\tSo(counter, ShouldEqual, 2)\r\n\t})\r\n}\r\n```\r\n\r\nlooks like 5 milliseconds is too high precision for the tests"}}
{"actor":{"display_login":"thedavidmeister"}}