Print URL when failing menu test

See #1222
This commit is contained in:
Bjørn Erik Pedersen 2015-06-21 23:09:39 +02:00
parent dbd93f5112
commit c507229191

View file

@ -202,8 +202,8 @@ func doTestPageMenuWithIdentifier(t *testing.T, menuPageSources []source.ByteSou
assert.NotNil(t, me1)
assert.NotNil(t, me2)
assert.True(t, strings.Contains(me1.URL, "doc1"))
assert.True(t, strings.Contains(me2.URL, "doc2"))
assert.True(t, strings.Contains(me1.URL, "doc1"), me1.URL)
assert.True(t, strings.Contains(me2.URL, "doc2"), me2.URL)
}
@ -241,9 +241,8 @@ func doTestPageMenuWithDuplicateName(t *testing.T, menuPageSources []source.Byte
assert.NotNil(t, me1)
assert.NotNil(t, me2)
assert.True(t, strings.Contains(me1.URL, "doc1"))
// TODO(bep) the below is failing on Travis on 1.3 + 1.5.
// assert.True(t, strings.Contains(me2.URL, "doc2"))
assert.True(t, strings.Contains(me1.URL, "doc1"), me1.URL, me1.URL)
assert.True(t, strings.Contains(me2.URL, "doc2"), me2.URL, me2.URL)
}