diff --git a/e2e/deno/tests/01.auth.ts b/e2e/deno/tests/01.auth.ts index 0f5a6be0..6a0188e6 100644 --- a/e2e/deno/tests/01.auth.ts +++ b/e2e/deno/tests/01.auth.ts @@ -34,6 +34,9 @@ Deno.test('1. authorization', { sanitizeResources: false }, async (t) => { tl.RpcError.is(e, 'SESSION_PASSWORD_NEEDED') ) { // retry with another number + await tg.logOut().catch((err) => { + console.error('Failed to log out:', err) + }) continue } else { await tg.close() diff --git a/e2e/node/ts/tests/01.auth.ts b/e2e/node/ts/tests/01.auth.ts index e5367888..3b5acac8 100644 --- a/e2e/node/ts/tests/01.auth.ts +++ b/e2e/node/ts/tests/01.auth.ts @@ -37,6 +37,9 @@ describe('1. authorization', function () { tl.RpcError.is(e, 'SESSION_PASSWORD_NEEDED') ) { // retry with another number + await tg.logOut().catch((err) => { + console.error('Failed to log out:', err) + }) continue } else { await tg.close()