agent: Update config test to handle zero value CheckUpdateInterval
This commit is contained in:
parent
bc9ea2af9a
commit
ca0887b401
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue