mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-06-14 23:45:03 +02:00
Fixing test to account for non-deterministic map order
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user