fix tests

This commit is contained in:
NatureFreshMilk 2019-02-08 10:30:44 +01:00
parent 8bea6505f8
commit 2880b90b76
3 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ import (
func TestNewMapping(t *testing.T) {
m := NewColorMapping()
err := m.LoadVFSColors(false, "/colors.txt")
_, err := m.LoadVFSColors(false, "/colors.txt")
if err != nil {
t.Fatal(err)
}

View File

@ -45,7 +45,7 @@ func TestSimpleRender(t *testing.T) {
cache := mapblockaccessor.NewMapBlockAccessor(a)
c := colormapping.NewColorMapping()
err = c.LoadVFSColors(false, "/colors.txt")
_, err = c.LoadVFSColors(false, "/colors.txt")
if err != nil {
t.Fatal(err)
}

View File

@ -40,7 +40,7 @@ func TestTileRender(t *testing.T) {
cache := mapblockaccessor.NewMapBlockAccessor(a)
c := colormapping.NewColorMapping()
err = c.LoadVFSColors(false, "/colors.txt")
_, err = c.LoadVFSColors(false, "/colors.txt")
if err != nil {
t.Fatal(err)
}
@ -69,7 +69,7 @@ func TestTileRender(t *testing.T) {
}
coord := coords.NewTileCoords(0, 0, 12, 0)
data, err := tr.Render(coord, 2)
data, err := tr.Render(coord)
if err != nil {
panic(err)
}
@ -83,7 +83,7 @@ func TestTileRender(t *testing.T) {
coord1 := coord.GetZoomedOutTile()
data, err = tr.Render(coord1, 3)
data, err = tr.Render(coord1)
if err != nil {
panic(err)
}