mirror of https://github.com/pulumi/pulumi.git
cf5b4a2790
<!--- Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation. --> # Description <!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. --> Likewise `require.NoError` instead of `require.Nil`, and `assert.Error` rather than `assert.NotNil`. The error variants of these functions print the errors nicer for test failures using `Error()` rather than `GoString()`. For bail errors this is _much_ better than the `result.Result` days where we now get errors like: ``` Error: Received unexpected error: BAIL: inner error ``` instead of: ``` Error: Expected nil, but got: &simpleResult{} ``` Also print the bail error in `TestPlan.Run` so we can see the description of it. |
||
---|---|---|
.. | ||
gen_program_test.go |