|
84 | 84 | 1: { |
85 | 85 | "actor": ["subscribe", channelB, 0], |
86 | 86 |
|
87 | | - "listener": |
88 | | - [ |
89 | | - ["leave", channelA, 5000], |
90 | | - ["join", channelA, 5000], |
91 | | - ["join", channelB, 5000] |
92 | | - ] // when more than two rules are in an array, they: |
93 | | - // can happen in any order |
94 | | - // must both happen, in order for that step to pass |
| 87 | + "listener": [ |
| 88 | + ["leave", channelA, 5000], |
| 89 | + ["join", channelA, 5000], |
| 90 | + ["join", channelB, 5000] |
| 91 | + ] // when more than two rules are in an array, they: |
| 92 | + // can happen in any order |
| 93 | + // must both happen, in order for that step to pass |
95 | 94 | }, |
96 | 95 |
|
97 | 96 | 2: { |
|
218 | 217 |
|
219 | 218 | console.log("\n" + new Date + ": step " + currentStep + " complete."); |
220 | 219 |
|
221 | | - for (a = 0; a < testResults[currentStep].length; a++){ |
| 220 | + if (!testResults[currentStep]) { |
| 221 | + testResults.push([{step: currentStep, action: "none", uuid: "none", timestamp: "none", date: new Date}]); |
| 222 | + } |
| 223 | + |
| 224 | + for (a = 0; a < testResults[currentStep].length; a++) { |
222 | 225 | var stringResults = JSON.stringify(testResults[currentStep][a]); |
223 | 226 | console.log("\nStep " + currentStep + " results: " + stringResults + "\n"); |
224 | 227 | } |
|
0 commit comments