Commit 3d32bfef authored by JC Brand's avatar JC Brand

Don't add test users alphabetically, but rather randomly

parent f4ff6370
......@@ -34,12 +34,12 @@
});
_.each(['Friends', 'Colleagues', 'Family', 'Acquaintances'], function (group) {
var i, prefix = group.toLowerCase();
var i;
for (i=0; i<100; i++) {
stanza = stanza.c('item', {
jid: prefix+i+'@example.net',
jid: Math.random().toString().replace('0.', '')+'@example.net',
subscription:'both'
}).c('group').t('Friends').up().up();
}).c('group').t(group).up().up();
}
});
this.connection.roster._onReceiveRosterSuccess(null, stanza.tree());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment