diff options
Diffstat (limited to 'test/test.js')
-rw-r--r-- | test/test.js | 4 |
1 files changed, 2 insertions, 2 deletions
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', |