cleanup debug code and last of circleci bugs
This commit is contained in:
parent
0a2e9fdfc4
commit
799c4419dc
3 changed files with 2 additions and 16 deletions
|
@ -17,7 +17,7 @@ jobs:
|
|||
- run:
|
||||
name: Run tests
|
||||
command: |
|
||||
npm run test:linux -- -r list
|
||||
npm run test:linux
|
||||
# - deploy:
|
||||
# name: Push to docker
|
||||
# command: |
|
||||
|
|
|
@ -21,12 +21,6 @@ app.after(function(ctx) {
|
|||
if (ctx.status >= 400) {
|
||||
logger = ctx.log.warn
|
||||
}
|
||||
console.log('')
|
||||
console.log({
|
||||
path: ctx.url,
|
||||
status: ctx.status,
|
||||
ms: Math.round(ended),
|
||||
}, 'Request finished')
|
||||
logger({
|
||||
path: ctx.url,
|
||||
status: ctx.status,
|
||||
|
|
|
@ -40,10 +40,6 @@ t.describe('Media (API)', () => {
|
|||
assert.match(err.message, /[Tt]oken/)
|
||||
assert.match(err.message, /[Mm]issing/)
|
||||
|
||||
await new Promise(function(res) {
|
||||
setTimeout(res, 10)
|
||||
})
|
||||
|
||||
assert.strictEqual(server.log.error.callCount, 0)
|
||||
assert.strictEqual(server.log.warn.callCount, 2)
|
||||
assert.strictEqual(typeof(server.log.warn.firstCall[0]), 'string')
|
||||
|
@ -68,10 +64,6 @@ t.describe('Media (API)', () => {
|
|||
assert.match(err.message, /[Tt]oken/)
|
||||
assert.match(err.message, /[Ii]nvalid/)
|
||||
|
||||
await new Promise(function(res) {
|
||||
setTimeout(res, 10)
|
||||
})
|
||||
|
||||
assert.strictEqual(server.log.error.callCount, 1)
|
||||
assert.strictEqual(server.log.warn.callCount, 2)
|
||||
assert.strictEqual(typeof(server.log.warn.firstCall[0]), 'string')
|
||||
|
|
Loading…
Reference in a new issue