fix: (util) TestGetMonitorPeriod time parameter pointer

This commit is contained in:
xushuhui 2022-04-12 11:15:31 +08:00
parent f403f8d8f9
commit 2e8f39f9b5
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import (
func TestGetMonitorPeriod(t *testing.T) { func TestGetMonitorPeriod(t *testing.T) {
now := time.Now() now := time.Now()
periods := GetMonitorPeriod(&now, &alerting.Schedule{ periods := GetMonitorPeriod(now, &alerting.Schedule{
Cron: &alerting.Cron{ Cron: &alerting.Cron{
Expression: "0 0 1 */1 *", Expression: "0 0 1 */1 *",
}, },