{"action":"created","issue":{"url":"https://api.github.com/repos/bndr/gojenkins/issues/61","repository_url":"https://api.github.com/repos/bndr/gojenkins","labels_url":"https://api.github.com/repos/bndr/gojenkins/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/bndr/gojenkins/issues/61/comments","events_url":"https://api.github.com/repos/bndr/gojenkins/issues/61/events","html_url":"https://github.com/bndr/gojenkins/issues/61","id":211576223,"number":61,"title":"go test panic on master","user":{"login":"bronzdoc","id":4595174,"avatar_url":"https://avatars1.githubusercontent.com/u/4595174?v=3","gravatar_id":"","url":"https://api.github.com/users/bronzdoc","html_url":"https://github.com/bronzdoc","followers_url":"https://api.github.com/users/bronzdoc/followers","following_url":"https://api.github.com/users/bronzdoc/following{/other_user}","gists_url":"https://api.github.com/users/bronzdoc/gists{/gist_id}","starred_url":"https://api.github.com/users/bronzdoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bronzdoc/subscriptions","organizations_url":"https://api.github.com/users/bronzdoc/orgs","repos_url":"https://api.github.com/users/bronzdoc/repos","events_url":"https://api.github.com/users/bronzdoc/events{/privacy}","received_events_url":"https://api.github.com/users/bronzdoc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-03T02:14:14Z","updated_at":"2017-03-03T12:54:57Z","closed_at":null,"body":"Hi, I'm trying to contribute with this enhancement https://github.com/bndr/gojenkins/issues/34 but `go test` is throwing a panic. I haven't changed or added any code,  i just `go get` the project and ran the test suite. Any help is appreciated, thanks.\r\n\r\n```\r\n$ go test\r\n\r\n--- FAIL: TestCreateJobs (0.00s)\r\n        Error Trace:    jenkins_test.go:29\r\n        Error:          Expected nil, but got: &errors.errorString{s:\"401\"}\r\n        Error Trace:    jenkins_test.go:30\r\n        Error:          Expected value not to be nil.\r\npanic: runtime error: invalid memory address or nil pointer dereference [recovered]\r\n        panic: runtime error: invalid memory address or nil pointer dereference\r\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x481521]\r\n\r\ngoroutine 18 [running]:\r\npanic(0x68b220, 0xc42000c230)\r\n        /usr/local/go/src/runtime/panic.go:500 +0x1a1\r\ntesting.tRunner.func1(0xc42013c0c0)\r\n        /usr/local/go/src/testing/testing.go:579 +0x25d\r\npanic(0x68b220, 0xc42000c230)\r\n        /usr/local/go/src/runtime/panic.go:458 +0x243\r\ngithub.com/bndr/gojenkins.TestCreateJobs(0xc42013c0c0)\r\n        /home/bronzdoc/gocode/src/github.com/bndr/gojenkins/jenkins_test.go:31 +0x1f1\r\ntesting.tRunner(0xc42013c0c0, 0x7058e8)\r\n        /usr/local/go/src/testing/testing.go:610 +0x81\r\ncreated by testing.(*T).Run\r\n        /usr/local/go/src/testing/testing.go:646 +0x2ec\r\nexit status 2\r\nFAIL    github.com/bndr/gojenkins       0.011s\r\n```\r\n\r\ngo env:\r\n```\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"/home/bronzdoc/gocode\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/local/go\"\r\nGOTOOLDIR=\"/usr/local/go/pkg/tool/linux_amd64\"\r\nCC=\"gcc\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build008091184=/tmp/go-build -gno-record-gcc-switches\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\n```\r\n\r\n```\r\nLinux version 4.9.0-0.bpo.1-amd64 (debian-kernel@lists.debian.org) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Debian 4.9.2-2~bpo8+1 (2017-01-26)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/bndr/gojenkins/issues/comments/283946014","html_url":"https://github.com/bndr/gojenkins/issues/61#issuecomment-283946014","issue_url":"https://api.github.com/repos/bndr/gojenkins/issues/61","id":283946014,"user":{"login":"bronzdoc","id":4595174,"avatar_url":"https://avatars1.githubusercontent.com/u/4595174?v=3","gravatar_id":"","url":"https://api.github.com/users/bronzdoc","html_url":"https://github.com/bronzdoc","followers_url":"https://api.github.com/users/bronzdoc/followers","following_url":"https://api.github.com/users/bronzdoc/following{/other_user}","gists_url":"https://api.github.com/users/bronzdoc/gists{/gist_id}","starred_url":"https://api.github.com/users/bronzdoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bronzdoc/subscriptions","organizations_url":"https://api.github.com/users/bronzdoc/orgs","repos_url":"https://api.github.com/users/bronzdoc/repos","events_url":"https://api.github.com/users/bronzdoc/events{/privacy}","received_events_url":"https://api.github.com/users/bronzdoc/received_events","type":"User","site_admin":false},"created_at":"2017-03-03T12:54:57Z","updated_at":"2017-03-03T12:54:57Z","body":"I do have a jenkins instance running and listening on `8080`"}}
{"actor":{"display_login":"bronzdoc"}}