forked from MTSR/mapserver
fix broken unit test due to color file move
This commit is contained in:
parent
7baaec5581
commit
af2a25735c
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user