Fix broken Travis tests

No idea why these suddenly starts to fail.
This commit is contained in:
bep 2015-04-22 18:59:46 +02:00
parent beb32af7a2
commit be2c67ad45
2 changed files with 4 additions and 3 deletions

View file

@ -5,6 +5,7 @@ import (
"github.com/spf13/hugo/source"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"html/template"
"path/filepath"
"testing"
)
@ -43,7 +44,7 @@ func TestPager(t *testing.T) {
assert.Equal(t, 5, paginator.TotalPages())
first := paginatorPages[0]
assert.Equal(t, "page/1/", first.URL())
assert.Equal(t, template.HTML("page/1/"), first.URL())
assert.Equal(t, first.URL(), first.Url())
assert.Equal(t, first, first.First())
assert.True(t, first.HasNext())
@ -59,7 +60,7 @@ func TestPager(t *testing.T) {
assert.Equal(t, paginatorPages[1], third.Prev())
last := paginatorPages[4]
assert.Equal(t, "page/5/", last.URL())
assert.Equal(t, template.HTML("page/5/"), last.URL())
assert.Equal(t, last, last.Last())
assert.False(t, last.HasNext())
assert.Nil(t, last.Next())

View file

@ -11,7 +11,7 @@ func TestScratchAdd(t *testing.T) {
scratch.Add("int1", 20)
scratch.Add("int2", 20)
assert.Equal(t, 30, scratch.Get("int1"))
assert.Equal(t, int64(30), scratch.Get("int1"))
assert.Equal(t, 20, scratch.Get("int2"))
scratch.Add("float1", float64(10.5))