mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
command: fix panic in TestStatePush_lineageMismatch
This test is currently failing due to the command completing successfully, which would previously cause a panic because we didn't properly initialize the MockUi and so its error buffer is nil unless written to. (The failure this was masking will be fixed in a subsequent commit.)
This commit is contained in:
parent
544c2932ce
commit
ced06a4ca3
@ -116,7 +116,7 @@ func TestStatePush_lineageMismatch(t *testing.T) {
|
||||
expected := testStateRead(t, "local-state.tfstate")
|
||||
|
||||
p := testProvider()
|
||||
ui := new(cli.MockUi)
|
||||
ui := cli.NewMockUi()
|
||||
c := &StatePushCommand{
|
||||
Meta: Meta{
|
||||
testingOverrides: metaOverridesForProvider(p),
|
||||
|
Loading…
Reference in New Issue
Block a user