1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-03-17 20:47:57 +02:00

Fixing test to account for non-deterministic map order

This commit is contained in:
Bob Briski 2017-11-02 14:40:30 -07:00
parent 4d547f0f3a
commit 36974f8b7b

View File

@ -94,7 +94,7 @@ func TestError_ShortMessage(t *testing.T) {
}
err = mapErr.Error()
if err != "issuetype - issue type is required: Original http error" {
if !(strings.Contains(err, "issue type is required") || strings.Contains(err, "title is required")) {
t.Errorf("Expected short message. Got %s", err)
}