From 2880b90b7623d461e16fe99df3b8cb2e26f21422 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Fri, 8 Feb 2019 10:30:44 +0100 Subject: [PATCH] fix tests --- server/colormapping/colormapping_test.go | 2 +- server/mapblockrenderer/renderer_test.go | 2 +- server/tilerenderer/renderer_test.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/colormapping/colormapping_test.go b/server/colormapping/colormapping_test.go index 636e376..5f85d6e 100644 --- a/server/colormapping/colormapping_test.go +++ b/server/colormapping/colormapping_test.go @@ -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) } diff --git a/server/mapblockrenderer/renderer_test.go b/server/mapblockrenderer/renderer_test.go index d8da89c..07a8029 100644 --- a/server/mapblockrenderer/renderer_test.go +++ b/server/mapblockrenderer/renderer_test.go @@ -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) } diff --git a/server/tilerenderer/renderer_test.go b/server/tilerenderer/renderer_test.go index 3e64b20..4efe2f2 100644 --- a/server/tilerenderer/renderer_test.go +++ b/server/tilerenderer/renderer_test.go @@ -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) }