Fix TestDestroyStackRef: don't change CWD and fix TestStackInitValidation (less rigid contains check)
@@ -146,9 +146,7 @@ func TestStackInitValidation(t *testing.T) {
stdout, stderr := e.RunCommandExpectError("pulumi", "stack", "init", "valid-name")
assert.Equal(t, "", stdout)
- assert.Contains(t, stderr,
- "error: could not get cloud url: could not load current project: "+
- "invalid YAML file: yaml: line 1: did not find expected key")
+ assert.Contains(t, stderr, "could not load current project: invalid YAML file")
})
}
@@ -988,7 +986,6 @@ func TestDestroyStackRef(t *testing.T) {
e.RunCommand("pulumi", "up", "--skip-preview", "--yes")
- e.CWD = os.TempDir()
e.RunCommand("pulumi", "destroy", "--skip-preview", "--yes", "-s", "dev")
}
