File fix-error-string-matching-in-test.patch of Package terraform
From df1ac404fc9d9286c5437a94135940df68acdb5d Mon Sep 17 00:00:00 2001
From: James Bardin <j.bardin@gmail.com>
Date: Wed, 23 Sep 2020 15:18:37 -0400
Subject: [PATCH] fix error string matching in test
This package is no longer used, but we are retaining it for now for its
help in protocol test coverage.
---
helper/schema/provider_test.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/helper/schema/provider_test.go b/helper/schema/provider_test.go
index 01ee82a1f4d..1f9b5e8bf8e 100644
--- a/helper/schema/provider_test.go
+++ b/helper/schema/provider_test.go
@@ -341,7 +341,7 @@ func TestProviderDiff_timeoutInvalidValue(t *testing.T) {
if err == nil {
t.Fatal("Expected provider.Diff to fail with invalid timeout value")
}
- expectedErrMsg := "time: invalid duration invalid"
+ expectedErrMsg := `time: invalid duration "invalid"`
if !strings.Contains(err.Error(), expectedErrMsg) {
t.Fatalf("Unexpected error message: %q\nExpected message to contain %q",
err.Error(),