Fix tests

This commit is contained in:
Bel LaPointe
2019-04-10 09:52:38 -06:00
parent 4c4791ee0f
commit 3bd1527b98
2 changed files with 11 additions and 3 deletions

View File

@@ -70,7 +70,10 @@ func GetTimeout() int {
t := packable.NewString()
conf.Get(nsConf, flagTimeout, t)
timeout, _ := strconv.Atoi(t.String())
timeout, err := strconv.Atoi(t.String())
if err != nil || timeout == 5 {
return 5
}
return timeout
}