@@ -1820,7 +1820,7 @@ test('calling next(false) should early exit from use handlers', function(t) {
18201820
18211821 SERVER . on ( 'after' , function ( ) {
18221822 steps ++ ;
1823- t . equal ( steps , 2 ) ;
1823+ t . equal ( steps , 1 ) ;
18241824 t . end ( ) ;
18251825 } ) ;
18261826
@@ -2111,7 +2111,7 @@ test('should increment/decrement inflight request count', function(t) {
21112111 CLIENT . get ( '/foo' , function ( err , _ , res ) {
21122112 t . ifError ( err ) ;
21132113 t . equal ( res . statusCode , 200 ) ;
2114- t . equal ( SERVER . inflightRequests ( ) , 1 ) ;
2114+ t . equal ( SERVER . inflightRequests ( ) , 0 ) ;
21152115 } ) ;
21162116} ) ;
21172117
@@ -2135,14 +2135,14 @@ test('should increment/decrement inflight request count for concurrent reqs', fu
21352135 CLIENT . get ( '/foo1' , function ( err , _ , res ) {
21362136 t . ifError ( err ) ;
21372137 t . equal ( res . statusCode , 200 ) ;
2138- t . equal ( SERVER . inflightRequests ( ) , 1 ) ;
2138+ t . equal ( SERVER . inflightRequests ( ) , 0 ) ;
21392139 t . end ( ) ;
21402140 } ) ;
21412141
21422142 CLIENT . get ( '/foo2' , function ( err , _ , res ) {
21432143 t . ifError ( err ) ;
21442144 t . equal ( res . statusCode , 200 ) ;
2145- t . equal ( SERVER . inflightRequests ( ) , 2 ) ;
2145+ t . equal ( SERVER . inflightRequests ( ) , 1 ) ;
21462146 } ) ;
21472147} ) ;
21482148
@@ -2174,7 +2174,7 @@ test('should cleanup inflight requests count for 404s', function(t) {
21742174 CLIENT . get ( '/foo1' , function ( err , _ , res ) {
21752175 t . ifError ( err ) ;
21762176 t . equal ( res . statusCode , 200 ) ;
2177- t . equal ( SERVER . inflightRequests ( ) , 1 ) ;
2177+ t . equal ( SERVER . inflightRequests ( ) , 0 ) ;
21782178
21792179 CLIENT . get ( '/doesnotexist' , function ( err2 , _2 , res2 ) {
21802180 t . ok ( err2 ) ;
@@ -2219,7 +2219,7 @@ test('should cleanup inflight requests count for timeouts', function(t) {
22192219 CLIENT . get ( '/foo2' , function ( err , _ , res ) {
22202220 t . ifError ( err ) ;
22212221 t . equal ( res . statusCode , 200 ) ;
2222- t . equal ( SERVER . inflightRequests ( ) , 2 ) ;
2222+ t . equal ( SERVER . inflightRequests ( ) , 1 ) ;
22232223 } ) ;
22242224} ) ;
22252225
@@ -2862,7 +2862,7 @@ test('inflightRequest accounting stable with firstChain', function(t) {
28622862 for ( var i = 0 ; i < results . length ; i ++ ) {
28632863 // The shed request should always be returned first, since it isn't
28642864 // handled by SERVER.get
2865- if ( i === 0 ) {
2865+ if ( i === 1 ) {
28662866 t . equal (
28672867 results [ i ] . statusCode ,
28682868 413 ,
0 commit comments