1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-03-19 20:57:47 +02:00
This commit is contained in:
Douglas Chimento 2016-06-03 20:54:51 -04:00
parent 31fcf682f6
commit d77b32f3dd

View File

@ -320,14 +320,13 @@ func TestIssue_Search(t *testing.T) {
w.WriteHeader(http.StatusOK)
fmt.Fprint(w, `{"expand": "schema,names","startAt": 0,"maxResults": 50,"total": 6,"issues": [{"expand": "html","id": "10230","self": "http://kelpie9:8081/rest/api/2/issue/BULK-62","key": "BULK-62","fields": {"summary": "testing","timetracking": null,"issuetype": {"self": "http://kelpie9:8081/rest/api/2/issuetype/5","id": "5","description": "The sub-task of the issue","iconUrl": "http://kelpie9:8081/images/icons/issue_subtask.gif","name": "Sub-task","subtask": true},"customfield_10071": null}},{"expand": "html","id": "10004","self": "http://kelpie9:8081/rest/api/2/issue/BULK-47","key": "BULK-47","fields": {"summary": "Cheese v1 2.0 issue","timetracking": null,"issuetype": {"self": "http://kelpie9:8081/rest/api/2/issuetype/3","id": "3","description": "A task that needs to be done.","iconUrl": "http://kelpie9:8081/images/icons/task.gif","name": "Task","subtask": false}}}]}`)
})
_ ,err := testClient.Issue.Search("something")
_, err := testClient.Issue.Search("something")
if err != nil {
t.Errorf("Error given: %s", err)
}
}
func Test_CustomFields(t *testing.T) {
setup()
defer teardown()
@ -348,4 +347,4 @@ func Test_CustomFields(t *testing.T) {
if cf != "test" {
t.Error("Expected \"test\" for custom field")
}
}
}