bulltrackers-module 1.0.998 → 1.0.1000
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,12 +11,12 @@ const { VERIFICATION: VerifCodes } = require('../../../verification/ErrorCodes')
|
|
|
11
11
|
describe('Log quota', () => {
|
|
12
12
|
describe('verification: LOG_QUOTA_EXCEEDED', () => {
|
|
13
13
|
it('fails dry_run when ctx.log() output exceeds limit', async () => {
|
|
14
|
-
// Log lines of ~
|
|
14
|
+
// Log lines of ~120 bytes each; 12000 lines ~ 1.4MB > 1MB quota
|
|
15
15
|
const code = `
|
|
16
16
|
module.exports = {
|
|
17
17
|
config: { name: 'LogFlood', skills: ['lib'] },
|
|
18
18
|
process: (ctx) => {
|
|
19
|
-
for (let i = 0; i <
|
|
19
|
+
for (let i = 0; i < 12000; i++) {
|
|
20
20
|
ctx.log('line ' + i + ' xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
|
|
21
21
|
}
|
|
22
22
|
return { ok: true };
|
|
@@ -98,4 +98,4 @@ describe('Log quota', () => {
|
|
|
98
98
|
assert.ok(logBuffer.length >= 2);
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
|
-
});
|
|
101
|
+
});
|
package/functions/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const version =
|
|
1
|
+
const version = 5.0
|