提交 0c7a24e8 编写于 作者: 1 15829070344 提交者: 何海涛

fixed 43aaa365 from https://gitee.com/murphy1984/acts/pulls/7071

【账号】分布式账号超长头像字符串构造优化
Signed-off-by: N15829070344 <hehaitao5@huawei.com>
Change-Id: I8617bcd5b387dc8dc1c9cb7ad538b4a6e897f744
上级 0a422d00
...@@ -465,23 +465,8 @@ export default function ActsDAGetSetTest() { ...@@ -465,23 +465,8 @@ export default function ActsDAGetSetTest() {
*/ */
it('setOsAccountDistributedInfo_test011', 0, async function (done) { it('setOsAccountDistributedInfo_test011', 0, async function (done) {
const accountAbility = account.getDistributedAccountAbility() const accountAbility = account.getDistributedAccountAbility()
var limitAvatar = ''; var limitAvatar = ''.padEnd(10 * 1024 * 1024 + 1, 'o')
for (var i = 0; i < LIMIT*10; i++) { console.debug('====>setOsAccountDistributedInfo_test011 avatar_length:' + limitAvatar.length)
limitAvatar +=
'0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' +
'0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' +
'0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' +
'0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' +
'0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' +
'0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' +
'0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' +
'0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' +
'0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' +
'0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' +
'012345678901234567890123';
}
limitAvatar += 'n'
console.debug(limitAvatar.length)
let obj = { let obj = {
id: '12345', id: '12345',
name: 'ZhangSan', name: 'ZhangSan',
...@@ -505,23 +490,9 @@ export default function ActsDAGetSetTest() { ...@@ -505,23 +490,9 @@ export default function ActsDAGetSetTest() {
*/ */
it('setOsAccountDistributedInfo_test012', 0, async function (done) { it('setOsAccountDistributedInfo_test012', 0, async function (done) {
const accountAbility = account.getDistributedAccountAbility() const accountAbility = account.getDistributedAccountAbility()
var limitAvatar = ''; var limitAvatar = ''.padEnd(10 * 1024 * 1024 + 1, 'o')
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) console.debug(limitAvatar.length)
console.debug('====>setOsAccountDistributedInfo_test012 avatar_length:' + limitAvatar.length)
let obj = { let obj = {
id: '12345', id: '12345',
name: 'ZhangSan', name: 'ZhangSan',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册