mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Cleanup tests
This commit is contained in:
parent
9cc8d43e37
commit
210feb6cc4
83 changed files with 226 additions and 537 deletions
|
@ -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()
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue