summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-11-07 23:47:37 +0100
committerDaniel Weipert <code@drogueronin.de>2023-11-07 23:47:37 +0100
commit7e4a2e3e3a45f0dd302ab3b0e3ac49ad7189eba4 (patch)
treec2a65bd1af9bb55de7680625557260566a1e6087 /test
parent30c8c2f2b05bab8b962b51c0faeb282980324a5c (diff)
UpdateHEADmain
Diffstat (limited to 'test')
-rw-r--r--test/docker/docker-compose.yml1
-rw-r--r--test/test.js4
2 files changed, 3 insertions, 2 deletions
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',