Skip to content

Commit

Permalink
refactoring TestExecutionSeconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Streppel committed Apr 10, 2020
1 parent 10d5840 commit 2874920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ func TestExecutionSecond(t *testing.T) {
func TestExecutionSeconds(t *testing.T) {
sched := NewScheduler(time.UTC)
jobDone := make(chan bool)
executionTimes := make([]int64, 0, 2)
numberOfIterations := 20
var executionTimes []int64
numberOfIterations := 2

sched.Every(2).Seconds().Do(func() {
executionTimes = append(executionTimes, time.Now().Unix())
Expand Down

0 comments on commit 2874920

Please sign in to comment.