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:
parent
4d547f0f3a
commit
36974f8b7b
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user