1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Cleanup tests

This commit is contained in:
Chocobozzz 2019-04-24 10:53:40 +02:00
parent 9cc8d43e37
commit 210feb6cc4
No known key found for this signature in database
GPG key ID: 583A612D890159BE
83 changed files with 226 additions and 537 deletions

View file

@ -6,7 +6,7 @@ import {
createUser,
flushTests,
killallServers,
runServer,
flushAndRunServer,
ServerInfo,
setAccessTokensToServers,
userLogin
@ -23,9 +23,7 @@ describe('Test debug API validators', function () {
before(async function () {
this.timeout(120000)
await flushTests()
server = await runServer(1)
server = await flushAndRunServer(1)
await setAccessTokensToServers([ server ])
@ -67,12 +65,7 @@ describe('Test debug API validators', function () {
})
})
after(async function () {
after(function () {
killallServers([ server ])
// Keep the logs if the test failed
if (this['ok']) {
await flushTests()
}
})
})