X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fplugins%2Fexternal-auth.ts;h=583100671cdd73118d9f41c26a0fb02077f412d5;hb=6627dbc957477aa32e21ed1bdc8cd72b928cd616;hp=f3e018d437bfe8efbd861f93f6d68ebabd5bb541;hpb=c4fa01f7c45b66b112ebd08abce744b7c4041feb;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/plugins/external-auth.ts b/server/tests/plugins/external-auth.ts index f3e018d43..583100671 100644 --- a/server/tests/plugins/external-auth.ts +++ b/server/tests/plugins/external-auth.ts @@ -2,16 +2,16 @@ import 'mocha' import { expect } from 'chai' +import { wait } from '@shared/core-utils' +import { HttpStatusCode, UserRole } from '@shared/models' import { cleanupTests, createSingleServer, decodeQueryString, PeerTubeServer, PluginsCommand, - setAccessTokensToServers, - wait -} from '@shared/extra-utils' -import { HttpStatusCode, UserRole } from '@shared/models' + setAccessTokensToServers +} from '@shared/server-commands' async function loginExternal (options: { server: PeerTubeServer @@ -125,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 () {