diff --git a/account/OsAccountTest_js/src/main/js/test/ActsDSGetSet.test.js b/account/OsAccountTest_js/src/main/js/test/ActsDSGetSet.test.js index fff84689889e60054f0089264c345ee5c9ad4aec..ea0da9a8b7c49b87077342b54d891865a1261a62 100644 --- a/account/OsAccountTest_js/src/main/js/test/ActsDSGetSet.test.js +++ b/account/OsAccountTest_js/src/main/js/test/ActsDSGetSet.test.js @@ -464,23 +464,8 @@ export default function ActsDAGetSetTest() { */ it('setOsAccountDistributedInfo_test011', 0, async function (done) { const accountAbility = account.getDistributedAccountAbility() - var limitAvatar = ''; - for (var i = 0; i < LIMIT*10; i++) { - limitAvatar += - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '012345678901234567890123'; - } - limitAvatar += 'n' - console.debug(limitAvatar.length) + var limitAvatar = ''.padEnd(10 * 1024 * 1024 + 1, 'o') + console.debug('====>setOsAccountDistributedInfo_test011 avatar_length:' + limitAvatar.length) let obj = { id: '12345', name: 'ZhangSan', @@ -504,23 +489,9 @@ export default function ActsDAGetSetTest() { */ it('setOsAccountDistributedInfo_test012', 0, async function (done) { const accountAbility = account.getDistributedAccountAbility() - var limitAvatar = ''; - for (var i = 0; i < LIMIT*10; i++) { - limitAvatar += - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' + - '012345678901234567890123'; - } - limitAvatar += 'n' + var limitAvatar = ''.padEnd(10 * 1024 * 1024 + 1, 'o') console.debug(limitAvatar.length) + console.debug('====>setOsAccountDistributedInfo_test012 avatar_length:' + limitAvatar.length) let obj = { id: '12345', name: 'ZhangSan',