agent: Update config test to handle zero value CheckUpdateInterval

This commit is contained in:
Armon Dadgar 2014-06-09 13:00:32 -07:00
parent bc9ea2af9a
commit ca0887b401
1 changed files with 32 additions and 30 deletions

View File

@ -433,6 +433,7 @@ func TestMergeConfig(t *testing.T) {
LeaveOnTerm: false,
SkipLeaveOnInt: false,
EnableDebug: false,
CheckUpdateIntervalRaw: "8m",
}
b := &Config{
@ -478,6 +479,7 @@ func TestMergeConfig(t *testing.T) {
EnableSyslog: true,
RejoinAfterLeave: true,
CheckUpdateInterval: 8 * time.Minute,
CheckUpdateIntervalRaw: "8m",
}
c := MergeConfig(a, b)