Build and publish Docker images / Build and publish images (push) Successful in 2m10s
16 lines
272 B
Go
16 lines
272 B
Go
package config
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/spf13/viper"
|
|
)
|
|
|
|
func TestSetDefaultsGeoIPPathIsOptional(t *testing.T) {
|
|
v := viper.New()
|
|
setDefaults(v)
|
|
if got := v.GetString("geoip.db_path"); got != "" {
|
|
t.Fatalf("geoip.db_path default = %q, want empty", got)
|
|
}
|
|
}
|