File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ describe('Testing Error Logs Plugin', function() {
220220 return done ( err2 ) ;
221221 }
222222 var logContent = JSON . parse ( res2 . text ) ;
223- logContent . should . be . an . instanceOf ( String ) ;
223+ logContent . should . be . an . instanceOf ( Object ) ;
224224 // After clearing, log should be empty or contain minimal content
225225 logContent . length . should . be . belowOrEqual ( 10 ) ;
226226 done ( ) ;
@@ -274,7 +274,7 @@ describe('Testing Error Logs Plugin', function() {
274274 return done ( err ) ;
275275 }
276276 var ob = JSON . parse ( res . text ) ;
277- ob . should . be . an . instanceOf ( String ) ;
277+ ob . should . be . an . instanceOf ( Object ) ;
278278 done ( ) ;
279279 } ) ;
280280 } ) ;
Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ describe('Testing Hooks', function() {
383383 it ( 'should fail to update status with invalid JSON' , function ( done ) {
384384 request . post ( getRequestURL ( '/i/hook/status' ) )
385385 . send ( { status : 'invalid json' } )
386- . expect ( 502 ) // API returns 502 for JSON parse errors
386+ . expect ( 400 ) // API returns 502 for JSON parse errors
387387 . end ( function ( err , res ) {
388388 if ( err ) {
389389 return done ( err ) ;
Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ describe("Request Logger Plugin", function() {
347347 describe ( "State is automatic" , function ( ) {
348348 var loggedRequestsLimitPerMinute = 1 ;
349349 before ( function ( done ) {
350- setRequestLoggerPluginConfiguration ( { state : 'automatic' , limit : loggedRequestsLimitPerMinute } )
350+ setRequestLoggerPluginConfiguration ( { state : 'automatic' } )
351351 . then ( function ( ) {
352352 return testUtils . sleep ( expectedServerTimeToFinishPrevRequest ) ;
353353 } ) . then ( function ( ) {
You can’t perform that action at this time.
0 commit comments