summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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',