mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -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")
|
expected := testStateRead(t, "local-state.tfstate")
|
||||||
|
|
||||||
p := testProvider()
|
p := testProvider()
|
||||||
ui := new(cli.MockUi)
|
ui := cli.NewMockUi()
|
||||||
c := &StatePushCommand{
|
c := &StatePushCommand{
|
||||||
Meta: Meta{
|
Meta: Meta{
|
||||||
testingOverrides: metaOverridesForProvider(p),
|
testingOverrides: metaOverridesForProvider(p),
|
||||||
|
Loading…
Reference in New Issue
Block a user