diff --git a/jira.go b/jira.go index 09a5f14..09c5498 100644 --- a/jira.go +++ b/jira.go @@ -3,10 +3,10 @@ package jira import ( "bytes" "encoding/json" + "fmt" "io" "net/http" "net/url" - "fmt" ) // A Client manages communication with the JIRA API. diff --git a/project_test.go b/project_test.go index 04eb5b2..e0ea0bd 100644 --- a/project_test.go +++ b/project_test.go @@ -55,7 +55,7 @@ func TestProjectGet(t *testing.T) { } } -func TestProjectWrongGet(t *testing.T) { +func TestProjectGet_NoProject(t *testing.T) { setup() defer teardown() testApiEdpoint := "/rest/api/2/project/99999999" @@ -66,7 +66,7 @@ func TestProjectWrongGet(t *testing.T) { fmt.Fprint(w, nil) }) - projects, resp, err := testClient.Project.Get("12310505") + projects, resp, err := testClient.Project.Get("99999999") if projects != nil { t.Errorf("Expected nil. Got %s", projects) }