From 7e4a2e3e3a45f0dd302ab3b0e3ac49ad7189eba4 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 7 Nov 2023 23:47:37 +0100 Subject: Update --- test/docker/docker-compose.yml | 1 + test/test.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/docker/docker-compose.yml b/test/docker/docker-compose.yml index e1f24b3..cbccb2e 100644 --- a/test/docker/docker-compose.yml +++ b/test/docker/docker-compose.yml @@ -1,6 +1,7 @@ version: "3" # docker run -t -i -e GREENMAIL_OPTS='-Dgreenmail.setup.test.all -Dgreenmail.hostname=0.0.0.0 -Dgreenmail.auth.disabled -Dgreenmail.verbose' -p 3025:3025 -p 3110:3110 -p 3143:3143 -p 3465:3465 -p 3993:3993 -p 3995:3995 -p 8080:8080 greenmail/standalone +# maybe use: https://github.com/tweedegolf/mailcrab ? services: mail1: diff --git a/test/test.js b/test/test.js index eab0ca0..a332c04 100644 --- a/test/test.js +++ b/test/test.js @@ -81,8 +81,8 @@ const toClient = new ImapFlow({ '\r\n' + 'FROM TEST CHILD 2 INNER MESSAGE SEEN BODY', ['\\SEEN'], new Date()); - for (let i = 0; i < 10000; i++) { - const flag = ['\\SEEN', '\\FLAGGED', ''][Math.floor(Math.random() * 3)]; + for (let i = 0; i < Number(process.env.COUNT || 10000); i++) { + const flag = ['\\SEEN', '', '\\FLAGGED'][Math.floor(Math.random() * 3)]; const now = new Date(); fromClient.append('10000 Mails', -- cgit v1.2.3