Skip to content

Commit

Permalink
chore: Move active counter
Browse files Browse the repository at this point in the history
  • Loading branch information
timdp committed Oct 21, 2019
1 parent 8d4b4ac commit cc87da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/helpers/tests2png/diagram-test-runner.ts
Expand Up @@ -84,6 +84,7 @@ async function paintWhenReady(inputStreams: TestStream[], operatorLabel: string,
console.error(`Failed to initialize screenshotter: ${err}`);
return;
}
++active;
try {
await paint(inputStreams, operatorLabel, outputStreams, filename, screenshotter);
console.info(`Painted ${filename}`);
Expand Down Expand Up @@ -120,7 +121,6 @@ global.asDiagram = function asDiagram(operatorLabel: string, glit: glitFn) {
global.rxTestScheduler.flush();
inputStreams = updateInputStreamsPostFlush(inputStreams);
let filename = './docs_app/content/img/' + makeFilename(operatorLabel);
++active;
paintWhenReady(inputStreams, operatorLabel, outputStreams, filename);
});
} else {
Expand Down

0 comments on commit cc87da2

Please sign in to comment.