Skip to content

Commit

Permalink
fix(Interceptor): Fix a bug where turning off a mock would hold the r…
Browse files Browse the repository at this point in the history
…equest forever in pending state

During the refactor for custom interceptor missed a branch where the mock exists but is not active,

and the responder for the request was never called making the request be in an infinite pending

state
  • Loading branch information
morsdyce committed Jun 4, 2018
1 parent 33046fe commit 4ff3527
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/api/interceptors/web-interceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class WebInterceptor {

this.logRequest(request, mock);
this.buildResponse(responder, response, request);
} else {
responder();
}
}
}).catch(() => responder())
Expand Down

0 comments on commit 4ff3527

Please sign in to comment.