Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fixed #1649 - incremented interval for tested task to 20ms
Browse files Browse the repository at this point in the history
  • Loading branch information
IzabellaRaulin committed Jun 19, 2017
1 parent 3cf770b commit 9fdcbb6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pkg/schedule/windowed_schedule_medium_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestWindowedSchedule(t *testing.T) {
log.SetLevel(log.DebugLevel)

Convey("Windowed Schedule expected to run forever", t, func() {
interval := time.Millisecond * 10
interval := time.Millisecond * 20
// set start and stop are nil, and the count is zero what means no limits
w := NewWindowedSchedule(interval, nil, nil, 0)

Expand Down Expand Up @@ -102,8 +102,8 @@ func TestWindowedSchedule(t *testing.T) {
Convey("Nominal windowed Schedule", t, func() {
Convey("without misses", func() {
startWait := time.Millisecond * 50
windowSize := time.Millisecond * 200
interval := time.Millisecond * 10
windowSize := time.Millisecond * 400
interval := time.Millisecond * 20

start := time.Now().Add(startWait)
stop := time.Now().Add(startWait + windowSize)
Expand Down Expand Up @@ -149,8 +149,8 @@ func TestWindowedSchedule(t *testing.T) {
})
Convey("with a few misses", func() {
startWait := time.Millisecond * 50
windowSize := time.Millisecond * 200
interval := time.Millisecond * 10
windowSize := time.Millisecond * 400
interval := time.Millisecond * 20

start := time.Now().Add(startWait)
stop := time.Now().Add(startWait + windowSize)
Expand Down Expand Up @@ -204,8 +204,8 @@ func TestWindowedSchedule(t *testing.T) {
})
Convey("started in the past", func() {
startWait := time.Millisecond * -200
windowSize := time.Millisecond * 400
interval := time.Millisecond * 10
windowSize := time.Millisecond * 600
interval := time.Millisecond * 20

start := time.Now().Add(startWait)
stop := time.Now().Add(startWait + windowSize)
Expand Down Expand Up @@ -258,7 +258,7 @@ func TestWindowedSchedule(t *testing.T) {
})
Convey("start without stop", func() {
startWait := time.Millisecond * 50
interval := time.Millisecond * 10
interval := time.Millisecond * 20

start := time.Now().Add(startWait)
w := NewWindowedSchedule(
Expand Down Expand Up @@ -290,8 +290,8 @@ func TestWindowedSchedule(t *testing.T) {
)
})
Convey("stop without start", func() {
windowSize := time.Millisecond * 200
interval := time.Millisecond * 10
windowSize := time.Millisecond * 400
interval := time.Millisecond * 20

stop := time.Now().Add(windowSize)
w := NewWindowedSchedule(
Expand Down

0 comments on commit 9fdcbb6

Please # to comment.