@@ -535,6 +535,35 @@ func TestDriverCompletely(t *testing.T) {
535535 withWarmup : true ,
536536 expectedInvocations : 10 ,
537537 },
538+ {
539+ testName : "without_warmup_second_granularity" ,
540+ experimentDurationMin : 1 ,
541+ invocationStats : []int {
542+ 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
543+ 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
544+ },
545+ traceGranularity : common .SecondGranularity ,
546+ expectedInvocations : 60 ,
547+ },
548+ {
549+ testName : "with_warmup_second_granularity" ,
550+ experimentDurationMin : 2 ,
551+ invocationStats : []int {
552+ 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
553+ 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
554+ 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
555+ 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
556+ },
557+ traceGranularity : common .SecondGranularity ,
558+ withWarmup : true ,
559+ expectedInvocations : 120 ,
560+ },
561+ {
562+ testName : "without_warmup_sleep_1min_then_invoke" ,
563+ experimentDurationMin : 2 ,
564+ invocationStats : []int {0 , 5 },
565+ expectedInvocations : 5 ,
566+ },
538567 }
539568
540569 for _ , test := range tests {
0 commit comments