{"action":"opened","issue":{"url":"https://api.github.com/repos/janosgyerik/portping/issues/1","repository_url":"https://api.github.com/repos/janosgyerik/portping","labels_url":"https://api.github.com/repos/janosgyerik/portping/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/janosgyerik/portping/issues/1/comments","events_url":"https://api.github.com/repos/janosgyerik/portping/issues/1/events","html_url":"https://github.com/janosgyerik/portping/issues/1","id":143979633,"number":1,"title":"Failing tests","user":{"login":"janosgyerik","id":1076364,"avatar_url":"https://avatars.githubusercontent.com/u/1076364?v=3","gravatar_id":"","url":"https://api.github.com/users/janosgyerik","html_url":"https://github.com/janosgyerik","followers_url":"https://api.github.com/users/janosgyerik/followers","following_url":"https://api.github.com/users/janosgyerik/following{/other_user}","gists_url":"https://api.github.com/users/janosgyerik/gists{/gist_id}","starred_url":"https://api.github.com/users/janosgyerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janosgyerik/subscriptions","organizations_url":"https://api.github.com/users/janosgyerik/orgs","repos_url":"https://api.github.com/users/janosgyerik/repos","events_url":"https://api.github.com/users/janosgyerik/events{/privacy}","received_events_url":"https://api.github.com/users/janosgyerik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-28T13:38:16Z","updated_at":"2016-03-28T13:38:16Z","closed_at":null,"body":"Some tests are failing, see output at the bottom.\r\n\r\nSee this [code review](http://codereview.stackexchange.com/a/124086/12390) for insightful tips to fix.\r\n\r\n```\r\n$ go test\r\n2016/03/28 15:18:23 port ping localhost:1234 -> dial tcp 127.0.0.1:1234: connection refused\r\n2016/03/28 15:18:23 port ping localhost:1234 -> <nil>\r\n--- FAIL: Test_ping_open_port (0.00 seconds)\r\n\tportping_test.go:49: localhost:1234 should be open\r\n\tportping_test.go:49: localhost:1234 should be closed\r\npanic: runtime error: invalid memory address or nil pointer dereference [recovered]\r\n\tpanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x20 pc=0x438c88]\r\n\r\ngoroutine 3 [running]:\r\nruntime.panic(0x547420, 0x6f5e88)\r\n\t/usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6\r\ntesting.func·005()\r\n\t/usr/lib/go/src/pkg/testing/testing.go:385 +0xe8\r\nruntime.panic(0x547420, 0x6f5e88)\r\n\t/usr/lib/go/src/pkg/runtime/panic.c:248 +0x106\r\ngithub.com/janosgyerik/portping.assertPingResult(0x57f650, 0x9, 0x4d2, 0xc21004d090, 0x7fc72dd99f00, ...)\r\n\t/home/janos/work/go/src/github.com/janosgyerik/portping/portping_test.go:53 +0x3c8\r\ngithub.com/janosgyerik/portping.assertPingFailure(0x57f650, 0x9, 0x4d2, 0xc21004d090, 0x588c10, ...)\r\n\t/home/janos/work/go/src/github.com/janosgyerik/portping/portping_test.go:65 +0x5e\r\ngithub.com/janosgyerik/portping.Test_ping_open_port(0xc21004d090)\r\n\t/home/janos/work/go/src/github.com/janosgyerik/portping/portping_test.go:95 +0xbf\r\ntesting.tRunner(0xc21004d090, 0x6f4de0)\r\n\t/usr/lib/go/src/pkg/testing/testing.go:391 +0x8b\r\ncreated by testing.RunTests\r\n\t/usr/lib/go/src/pkg/testing/testing.go:471 +0x8b2\r\n\r\ngoroutine 1 [chan receive]:\r\ntesting.RunTests(0x5bda78, 0x6f4de0, 0xd, 0xd, 0x1)\r\n\t/usr/lib/go/src/pkg/testing/testing.go:472 +0x8d5\r\ntesting.Main(0x5bda78, 0x6f4de0, 0xd, 0xd, 0x6f8fe0, ...)\r\n\t/usr/lib/go/src/pkg/testing/testing.go:403 +0x84\r\nmain.main()\r\n\tgithub.com/janosgyerik/portping/_test/_testmain.go:71 +0x9c\r\n\r\ngoroutine 5 [syscall]:\r\nruntime.goexit()\r\n\t/usr/lib/go/src/pkg/runtime/proc.c:1394\r\nexit status 2\r\nFAIL\tgithub.com/janosgyerik/portping\t0.003s\r\n```"}}