File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -379,6 +379,30 @@ func TestTickDur(t *testing.T) {
379
379
currentStep : 2 ,
380
380
expected : 10 * time .Second ,
381
381
},
382
+ {
383
+ name : "Test case 7: testing below minwait" ,
384
+ tick : DurationScaler {
385
+ Interval : 1 ,
386
+ ScalingFactor : - 0.999 ,
387
+ originalDuration : time .Millisecond * 2 ,
388
+ lastInterval : 0 ,
389
+ },
390
+ duration : MinWait ,
391
+ currentStep : 1 ,
392
+ expected : MinWait ,
393
+ },
394
+ {
395
+ name : "Test case 8: testing below minwait" ,
396
+ tick : DurationScaler {
397
+ Interval : 1 ,
398
+ ScalingFactor : - 0.999 ,
399
+ originalDuration : time .Millisecond * 900 ,
400
+ lastInterval : 0 ,
401
+ },
402
+ duration : MinWait ,
403
+ currentStep : 1 ,
404
+ expected : MinWait ,
405
+ },
382
406
}
383
407
384
408
for _ , tc := range testCases {
You can’t perform that action at this time.
0 commit comments