pulumi/pkg/testing/integration
Fraser Waters cf5b4a2790
Use `assert.NoError` rather than `assert.Nil` (#14233)
<!--- 
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.
2023-10-13 09:46:07 +00:00
..
command.go Don't disable ambiant providers during tests (#9404) 2022-04-15 11:14:47 +02:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
program.go [environments] Add integration tests (#14144) 2023-10-12 16:39:26 +00:00
program_test.go Use `assert.NoError` rather than `assert.Nil` (#14233) 2023-10-13 09:46:07 +00:00
pulumi.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
s3reporter.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
util.go all: Assert => Assertf 2023-03-03 14:37:43 -08:00