Don't require stderr to be empty in a test
Because of a bug in our version scripts (which will be addressed by pulumi/pulumi#2216) we generate a goofy version when building an untagged commit in the release branches. That causes our logic to decide if it should print the upgrade message or not to print an upgrade message, because it thinks the CLI is out of date. It then prints the upgrade message and a test fails because it is expecting an empty stderr. Just stop checking that stderr was empty, and just validate standard out.
This commit is contained in:
parent
faff805f1e
commit
c95890c481
|
@ -214,13 +214,12 @@ func TestStackOutputsJSON(t *testing.T) {
|
|||
e.RunCommand("pulumi", "login", "--cloud-url", e.LocalURL())
|
||||
e.RunCommand("pulumi", "stack", "init", "stack-outs")
|
||||
e.RunCommand("pulumi", "up", "--non-interactive", "--skip-preview")
|
||||
stdout, stderr := e.RunCommand("pulumi", "stack", "output", "--json")
|
||||
stdout, _ := e.RunCommand("pulumi", "stack", "output", "--json")
|
||||
assert.Equal(t, `{
|
||||
"foo": 42,
|
||||
"xyz": "ABC"
|
||||
}
|
||||
`, stdout)
|
||||
assert.Equal(t, "", stderr)
|
||||
}
|
||||
|
||||
// TestStackOutputsDisplayed ensures that outputs are printed at the end of an update
|
||||
|
|
Loading…
Reference in a new issue