Browse Source

Don't add test users alphabetically, but rather randomly

JC Brand 10 years ago
parent
commit
3d32bfefc3
1 changed files with 3 additions and 3 deletions
  1. 3 3
      spec/profiling.js

+ 3 - 3
spec/profiling.js

@@ -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());