From 49286cf5eadea0f6fa1215b8f9178bf178059874 Mon Sep 17 00:00:00 2001 From: Simon Howe Date: Wed, 6 Apr 2016 12:43:03 +0200 Subject: [PATCH] Fixes generated node names for the perf. tests! --- client/app/scripts/components/debug-toolbar.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/app/scripts/components/debug-toolbar.js b/client/app/scripts/components/debug-toolbar.js index 80f8054dd..1549c3c7d 100644 --- a/client/app/scripts/components/debug-toolbar.js +++ b/client/app/scripts/components/debug-toolbar.js @@ -32,7 +32,7 @@ const LABEL_PREFIXES = _.range('A'.charCodeAt(), 'Z'.charCodeAt() + 1) .map(n => String.fromCharCode(n)); -const randomLetter = () => _.sample(LABEL_PREFIXES); +// const randomLetter = () => _.sample(LABEL_PREFIXES); const deltaAdd = (name, adjacency = [], shape = 'circle', stack = false, nodeCount = 1) => ({ @@ -108,8 +108,9 @@ function startPerf(delay) { function addNodes(n) { const ns = AppStore.getNodes(); const nodeNames = ns.keySeq().toJS(); - const newNodeNames = _.range(ns.size, ns.size + n).map(() => ( - `${randomLetter()}${randomLetter()}-zing` + const newNodeNames = _.range(ns.size, ns.size + n).map(i => ( + // `${randomLetter()}${randomLetter()}-zing` + `zing${i}` )); const allNodes = _(nodeNames).concat(newNodeNames).value();