File tree Expand file tree Collapse file tree 5 files changed +22
-4
lines changed Expand file tree Collapse file tree 5 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ var TIMEOUT = require('./constants');
99
1010describe ( 'when server responds with an error' , function ( ) {
1111
12- this . timeout ( TIMEOUT . STANDARD ) ;
12+ this . timeout ( TIMEOUT . QUICK ) ;
1313
1414 var app ;
1515 var slowTarget ;
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ /**
4+ * Test timeout constants in milliseconds
5+ */
6+ module . exports = {
7+ // Standard timeout for most tests
8+ STANDARD : 10000 ,
9+
10+ // Shorter timeout for quick tests
11+ QUICK : 2000 ,
12+
13+ // Medium timeout for tests that need a bit more time
14+ MEDIUM : 3000 ,
15+
16+ // Extended timeout for tests that need more time
17+ EXTENDED : 15000
18+ } ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ function createLocalApplicationServer() {
1616}
1717
1818describe ( 'when proxy request is a GET' , function ( ) {
19- this . timeout ( TIMEOUT . STANDARD ) ;
19+ this . timeout ( TIMEOUT . QUICK ) ;
2020
2121 var localServer ;
2222
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ var proxyTarget = require('./support/proxyTarget');
88var TIMEOUT = require ( './constants' ) ;
99
1010describe ( 'proxies https' , function ( ) {
11- this . timeout ( TIMEOUT . STANDARD ) ;
11+ this . timeout ( TIMEOUT . QUICK ) ;
1212
1313 var app ;
1414 var proxyServer ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ var proxyTarget = require('./support/proxyTarget');
88var TIMEOUT = require ( './constants' ) ;
99
1010describe ( 'userResDecorator' , function ( ) {
11- this . timeout ( TIMEOUT . STANDARD ) ;
11+ this . timeout ( TIMEOUT . QUICK ) ;
1212 var proxyServer ;
1313
1414 beforeEach ( function ( ) {
You can’t perform that action at this time.
0 commit comments