瀏覽代碼

Don't add test users alphabetically, but rather randomly

JC Brand 10 年之前
父節點
當前提交
3d32bfefc3
共有 1 個文件被更改,包括 3 次插入3 次删除
  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());