Fix map-order dependent menu tests

Fixes #1222
This commit is contained in:
Bjørn Erik Pedersen 2015-06-21 23:36:58 +02:00
parent c507229191
commit d4b6f9aca3

View file

@ -203,7 +203,7 @@ func doTestPageMenuWithIdentifier(t *testing.T, menuPageSources []source.ByteSou
assert.NotNil(t, me2)
assert.True(t, strings.Contains(me1.URL, "doc1"), me1.URL)
assert.True(t, strings.Contains(me2.URL, "doc2"), me2.URL)
assert.True(t, strings.Contains(me2.URL, "doc2") || strings.Contains(me2.URL, "doc3"), me2.URL)
}
@ -241,8 +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"), me1.URL, me1.URL)
assert.True(t, strings.Contains(me2.URL, "doc2"), me2.URL, me2.URL)
assert.True(t, strings.Contains(me1.URL, "doc1"), me1.URL)
assert.True(t, strings.Contains(me2.URL, "doc2") || strings.Contains(me2.URL, "doc3"), me2.URL)
}