fix: (util) TestGetMonitorPeriod time parameter pointer
This commit is contained in:
parent
f403f8d8f9
commit
2e8f39f9b5
|
@ -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 *",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue