X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fplugins%2Fexternal-auth.ts;h=583100671cdd73118d9f41c26a0fb02077f412d5;hb=6627dbc957477aa32e21ed1bdc8cd72b928cd616;hp=a2828603a6491a2020c5f81fcfbb3a92bf300216;hpb=c0e8b12e7fd554ba4d2ceb0c4900804c6a4c63ea;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/plugins/external-auth.ts b/server/tests/plugins/external-auth.ts index a2828603a..583100671 100644 --- a/server/tests/plugins/external-auth.ts +++ b/server/tests/plugins/external-auth.ts @@ -2,17 +2,16 @@ import 'mocha' import { expect } from 'chai' -import { HttpStatusCode } from '@shared/models' +import { wait } from '@shared/core-utils' +import { HttpStatusCode, UserRole } from '@shared/models' import { cleanupTests, - decodeQueryString, createSingleServer, - PluginsCommand, + decodeQueryString, PeerTubeServer, - setAccessTokensToServers, - wait -} from '@shared/extra-utils' -import { UserRole } from '@shared/models' + PluginsCommand, + setAccessTokensToServers +} from '@shared/server-commands' async function loginExternal (options: { server: PeerTubeServer @@ -126,7 +125,7 @@ describe('Test external auth plugins', function () { expectedStatus: HttpStatusCode.BAD_REQUEST_400 }) - await server.servers.waitUntilLog('expired external auth token', 2) + await server.servers.waitUntilLog('expired external auth token', 4) }) it('Should auto login Cyan, create the user and use the token', async function () {