command/import: fix TestImport_initializationErrorShouldUnlock
This was checking for a specific output error message which has changed due to our new provider installer/selection approach.
This commit is contained in:
parent
958ea4f7d1
commit
69cae48a11
|
@ -313,7 +313,7 @@ func TestImport_initializationErrorShouldUnlock(t *testing.T) {
|
|||
|
||||
// specifically, it should fail due to a missing provider
|
||||
msg := ui.ErrorWriter.String()
|
||||
if want := "Could not satisfy plugin requirements"; !strings.Contains(msg, want) {
|
||||
if want := `unknown provider "registry.terraform.io/hashicorp/unknown"`; !strings.Contains(msg, want) {
|
||||
t.Errorf("incorrect message\nwant substring: %s\ngot:\n%s", want, msg)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue