1
0
forked from MTSR/mapserver

fix tests

This commit is contained in:
NatureFreshMilk 2019-02-25 07:23:27 +01:00
parent 630c47af8b
commit f3935f786c
2 changed files with 4 additions and 3 deletions

View File

@ -12,6 +12,7 @@ import (
"mapserver/testutils" "mapserver/testutils"
"os" "os"
"testing" "testing"
"time"
) )
func TestSimpleRender(t *testing.T) { func TestSimpleRender(t *testing.T) {
@ -43,7 +44,7 @@ func TestSimpleRender(t *testing.T) {
panic(err) panic(err)
} }
cache := mapblockaccessor.NewMapBlockAccessor(a) cache := mapblockaccessor.NewMapBlockAccessor(a, 500*time.Millisecond, 1000*time.Millisecond)
c := colormapping.NewColorMapping() c := colormapping.NewColorMapping()
_, err = c.LoadVFSColors(false, "/colors.txt") _, err = c.LoadVFSColors(false, "/colors.txt")
if err != nil { if err != nil {

View File

@ -13,7 +13,7 @@ import (
"mapserver/tiledb" "mapserver/tiledb"
"os" "os"
"testing" "testing"
"time"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )
@ -38,7 +38,7 @@ func TestTileRender(t *testing.T) {
panic(err) panic(err)
} }
cache := mapblockaccessor.NewMapBlockAccessor(a) cache := mapblockaccessor.NewMapBlockAccessor(a, 500*time.Millisecond, 1000*time.Millisecond)
c := colormapping.NewColorMapping() c := colormapping.NewColorMapping()
_, err = c.LoadVFSColors(false, "/colors.txt") _, err = c.LoadVFSColors(false, "/colors.txt")
if err != nil { if err != nil {