@@ -124,7 +124,7 @@ describe('Autoscaler -', () => {
124
124
// Fill in form -- valid inputs
125
125
createPolicy . stepper . getStepperForm ( ) . fill ( { metric_type : 'memoryutil' } ) ;
126
126
createPolicy . stepper . getStepperForm ( ) . fill ( { operator : '>=' } ) ;
127
- createPolicy . stepper . getStepperForm ( ) . fill ( { threshold : '20 ' } ) ;
127
+ createPolicy . stepper . getStepperForm ( ) . fill ( { threshold : '60 ' } ) ;
128
128
createPolicy . stepper . getStepperForm ( ) . fill ( { breach_duration_secs : '60' } ) ;
129
129
expect ( createPolicy . stepper . getMatErrorsCount ( ) ) . toBe ( 0 ) ;
130
130
expect ( createPolicy . stepper . getDoneButtonDisabledStatus ( ) ) . toBe ( null ) ;
@@ -213,7 +213,7 @@ describe('Autoscaler -', () => {
213
213
expect ( createPolicy . stepper . canNext ( ) ) . toBeFalsy ( ) ;
214
214
215
215
// Schedule dates should not overlap
216
- const scheduleStartDate1 = moment ( ) . tz ( 'UTC' ) . add ( 1 , 'minutes' ) . add ( 30 , 'seconds' ) ; // Should be set close to time it's entered
216
+ const scheduleStartDate1 = moment ( ) . tz ( 'UTC' ) . add ( 1 , 'minutes' ) . add ( 10 , 'seconds' ) ; // Should be set close to time it's entered
217
217
scheduleEndDate1 = moment ( ) . tz ( 'UTC' ) . add ( 2 , 'days' ) ;
218
218
scheduleStartDate2 = moment ( ) . tz ( 'UTC' ) . add ( 3 , 'days' ) ;
219
219
scheduleEndDate2 = moment ( ) . tz ( 'UTC' ) . add ( 4 , 'days' ) ;
@@ -275,7 +275,7 @@ describe('Autoscaler -', () => {
275
275
276
276
expect ( appAutoscaler . tableTriggers . getTableRowsCount ( ) ) . toBe ( 2 ) ;
277
277
expect ( appAutoscaler . tableTriggers . getTableRowCellContent ( 0 , 0 ) ) . toBe ( 'memoryutil' ) ;
278
- expect ( appAutoscaler . tableTriggers . getTableRowCellContent ( 0 , 1 ) ) . toBe ( '>=20 % for 60 secs.' ) ;
278
+ expect ( appAutoscaler . tableTriggers . getTableRowCellContent ( 0 , 1 ) ) . toBe ( '>=60 % for 60 secs.' ) ;
279
279
expect ( appAutoscaler . tableTriggers . getTableRowCellContent ( 0 , 2 ) ) . toBe ( '+2 instances' ) ;
280
280
expect ( appAutoscaler . tableTriggers . getTableRowCellContent ( 1 , 0 ) ) . toBe ( 'throughput' ) ;
281
281
expect ( appAutoscaler . tableTriggers . getTableRowCellContent ( 1 , 1 ) ) . toBe ( '<=10rps for 120 secs.' ) ;
@@ -528,7 +528,7 @@ describe('Autoscaler -', () => {
528
528
529
529
// TODO: It takes about 130s of waiting for the event to show up, which is a long time to wait about.
530
530
// This depends on scheduleStartDate1
531
- extendE2ETestTime ( 180000 ) ;
531
+ extendE2ETestTime ( 60000 ) ;
532
532
function waitForRow ( ) {
533
533
const sub = timer ( 5000 , 5000 ) . pipe (
534
534
switchMap ( ( ) => eventPageBase . list . table . getRowCount ( ) )
0 commit comments