Skip to content

Commit

Permalink
remove use of the pointer package (#14379)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 authored Aug 29, 2022
1 parent b3f36fb commit 03db9b7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions command/job_periodic_force_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,17 +219,17 @@ func TestJobPeriodicForceCommand_SuccessfulIfJobIDEqualsPrefix(t *testing.T) {

j1 := testJob("periodic-prefix")
j1.Periodic = &api.PeriodicConfig{
SpecType: pointer.Of(api.PeriodicSpecCron),
Spec: pointer.Of("*/15 * * * * *"),
ProhibitOverlap: pointer.Of(true),
TimeZone: pointer.Of("Europe/Minsk"),
SpecType: helper.StringToPtr(api.PeriodicSpecCron),
Spec: helper.StringToPtr("*/15 * * * * *"),
ProhibitOverlap: helper.BoolToPtr(true),
TimeZone: helper.StringToPtr("Europe/Minsk"),
}
j2 := testJob("periodic-prefix-another-job")
j2.Periodic = &api.PeriodicConfig{
SpecType: pointer.Of(api.PeriodicSpecCron),
Spec: pointer.Of("*/15 * * * * *"),
ProhibitOverlap: pointer.Of(true),
TimeZone: pointer.Of("Europe/Minsk"),
SpecType: helper.StringToPtr(api.PeriodicSpecCron),
Spec: helper.StringToPtr("*/15 * * * * *"),
ProhibitOverlap: helper.BoolToPtr(true),
TimeZone: helper.StringToPtr("Europe/Minsk"),
}

ui := cli.NewMockUi()
Expand Down

0 comments on commit 03db9b7

Please sign in to comment.