1
0
forked from MTSR/mapserver

fix broken unit test due to color file move

This commit is contained in:
NatureFreshMilk 2019-07-31 11:47:19 +02:00
parent 7baaec5581
commit af2a25735c
3 changed files with 8 additions and 3 deletions

View File

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

View File

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

View File

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