chore(conf): add default value for max_concurrent_pushes (#646)

This commit is contained in:
Bo-Yi Wu
2021-12-09 23:46:49 +08:00
committed by GitHub
parent 20e6566183
commit 4c1c87aecc
3 changed files with 16 additions and 0 deletions

View File

@@ -17,6 +17,15 @@ func TestMissingFile(t *testing.T) {
assert.NotNil(t, err)
}
func TestEmptyConfig(t *testing.T) {
conf, err := LoadConf("testdata/empty.yml")
if err != nil {
panic("failed to load config.yml from file")
}
assert.Equal(t, uint(100), conf.Ios.MaxConcurrentPushes)
}
type ConfigTestSuite struct {
suite.Suite
ConfGorushDefault *ConfYaml