From: Bjørn Erik Pedersen Date: Sun, 21 Jun 2015 21:09:39 +0000 (+0200) Subject: Print URL when failing menu test X-Git-Tag: v0.15~325 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c5072291;p=brevno-suite%2Fhugo Print URL when failing menu test See #1222 --- diff --git a/hugolib/menu_test.go b/hugolib/menu_test.go index a5ccd661..fc7b95f7 100644 --- a/hugolib/menu_test.go +++ b/hugolib/menu_test.go @@ -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) }