mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Try to speed up server tests
This commit is contained in:
parent
3f8ae0e4e4
commit
fae6e4da8f
11 changed files with 121 additions and 61 deletions
19
shared/extra-utils/server/debug.ts
Normal file
19
shared/extra-utils/server/debug.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
import { makeGetRequest } from '../requests/requests'
|
||||
import { HttpStatusCode } from '../../core-utils/miscs/http-error-codes'
|
||||
|
||||
function getDebug (url: string, token: string) {
|
||||
const path = '/api/v1/server/debug'
|
||||
|
||||
return makeGetRequest({
|
||||
url,
|
||||
path,
|
||||
token,
|
||||
statusCodeExpected: HttpStatusCode.OK_200
|
||||
})
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
getDebug
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue