]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix lowest email port
authorChocobozzz <me@florianbigard.com>
Fri, 19 May 2023 13:33:26 +0000 (15:33 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 19 May 2023 13:33:26 +0000 (15:33 +0200)
server/tests/shared/mock-servers/mock-email.ts

index 5f37f6ae0be439a307704eb562a6af5d7d34ecb9..6eda2dfda0542f0a49cec88e9712784e454e8357 100644 (file)
@@ -12,7 +12,7 @@ class MockSmtpServer {
 
   collectEmails (emailsCollection: object[]) {
     return new Promise<number>((res, rej) => {
 
   collectEmails (emailsCollection: object[]) {
     return new Promise<number>((res, rej) => {
-      const port = parallelTests() ? randomInt(1000, 2000) : 1025
+      const port = parallelTests() ? randomInt(1025, 2000) : 1025
       this.emails = emailsCollection
 
       if (this.started) {
       this.emails = emailsCollection
 
       if (this.started) {