未验证 提交 2f7a3e1f 编写于 作者: O openharmony_ci 提交者: Gitee

!7071 【账号】分布式账号超长头像字符串构造优化

Merge pull request !7071 from 何海涛/distributeAccount_limitAvatar
......@@ -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',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册