update coverage.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
40902070c5
commit
3c03839e2e
|
@ -43,3 +43,11 @@ func TestReadConfig(t *testing.T) {
|
|||
assert.Equal(t, "8088", config.Core.Port)
|
||||
assert.True(t, config.Android.Enabled)
|
||||
}
|
||||
|
||||
// Test config file.
|
||||
func TestDefaultConfig(t *testing.T) {
|
||||
config := BuildDefaultPushConf()
|
||||
|
||||
assert.Equal(t, "8088", config.Core.Port)
|
||||
assert.False(t, config.Android.Enabled)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue