From 69cae48a11a3773b9411bacc47a1de20a4125de2 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Thu, 2 Apr 2020 16:02:46 -0700 Subject: [PATCH] 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. --- command/import_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/import_test.go b/command/import_test.go index 68041edf8..9dea385dd 100644 --- a/command/import_test.go +++ b/command/import_test.go @@ -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) }