test: fix debug test case

This commit is contained in:
DIYgod
2019-09-04 21:56:16 +08:00
parent 4bc0a56064
commit 16263b020c
5 changed files with 24 additions and 10 deletions

View File

@@ -21,4 +21,6 @@ module.exports = async (ctx, next) => {
if (ctx.response.get('X-Koa-Redis-Cache') || ctx.response.get('X-Koa-Memory-Cache')) {
ctx.debug.hitCache++;
}
ctx.state.debuged = true;
};