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:
Martin Atkins 2020-04-02 16:02:46 -07:00
parent 958ea4f7d1
commit 69cae48a11
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}