In #2330 there was a case where if you didn't pass a value to the `pulumi.Config()` constructor, things would fail in a weird manner. This shouldn't be the case, and I'm unable to reproduce the issue. So I'm updating the test to use the form that didn't work at one point so we can lock in the win. Fixes #2330
15 lines
533 B
JavaScript
15 lines
533 B
JavaScript
// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
|
|
|
|
"use strict";
|
|
const pulumi = require("@pulumi/pulumi");
|
|
|
|
const config = new pulumi.Config();
|
|
const iterations = config.getNumber("count") || 1000;
|
|
|
|
// Emit many, many diagnostic events from the engine to stress test the
|
|
// ability to record those events on the Pulumi Service.
|
|
console.log("Starting to spam a bunch of diagnostic messages...");
|
|
for (let i = 0; i < iterations; i++) {
|
|
console.log(`${i}: The current time is ${new Date()}`);
|
|
}
|
|
console.log("done");
|