fix(test): Use json pattern match in pulumi about --json
@@ -42,7 +42,7 @@ func TestAboutCommands(t *testing.T) {
stdout, _ := e.RunCommand("pulumi", "about", "--json")
var res interface{}
assert.NoError(t, json.Unmarshal([]byte(stdout), &res), "Should be valid json")
- assert.Regexp(t, `Go Version\s+go\d+.\d+`, stdout)
+ assert.Regexp(t, `"goVersion": "go\d+.\d+"`, stdout)
assert.Contains(t, stdout, runtime.Compiler)
assert.Contains(t, stdout, "Failed to get information about the current stack:")
})
