File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1151,7 +1151,7 @@ mod tests {
1151
1151
. map ( |i| {
1152
1152
debug_assert_eq ! (
1153
1153
task. get_next_exec_timestamp( ) . unwrap( ) ,
1154
- timestamp( ) + ( init_seconds * ( i - 1 ) )
1154
+ timestamp( ) + ( init_seconds * i )
1155
1155
) ;
1156
1156
} )
1157
1157
. for_each ( drop) ;
@@ -1183,7 +1183,7 @@ mod tests {
1183
1183
. map ( |i| {
1184
1184
debug_assert_eq ! (
1185
1185
task. get_next_exec_timestamp( ) . unwrap( ) ,
1186
- timestamp( ) + ( init_minutes * ( i - 1 ) * ONE_MINUTE )
1186
+ timestamp( ) + ( init_minutes * i * ONE_MINUTE )
1187
1187
) ;
1188
1188
} )
1189
1189
. for_each ( drop) ;
@@ -1204,7 +1204,7 @@ mod tests {
1204
1204
. map ( |i| {
1205
1205
debug_assert_eq ! (
1206
1206
task. get_next_exec_timestamp( ) . unwrap( ) ,
1207
- timestamp( ) + ( init_hours * ( i - 1 ) * ONE_HOUR )
1207
+ timestamp( ) + ( init_hours * i * ONE_HOUR )
1208
1208
) ;
1209
1209
} )
1210
1210
. for_each ( drop) ;
@@ -1225,7 +1225,7 @@ mod tests {
1225
1225
. map ( |i| {
1226
1226
debug_assert_eq ! (
1227
1227
task. get_next_exec_timestamp( ) . unwrap( ) ,
1228
- timestamp( ) + ( init_days * ( i - 1 ) * ONE_DAY )
1228
+ timestamp( ) + ( init_days * i * ONE_DAY )
1229
1229
) ;
1230
1230
} )
1231
1231
. for_each ( drop) ;
You can’t perform that action at this time.
0 commit comments