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.
This commit is contained in:
James Bardin 2020-09-23 15:18:37 -04:00
parent 537070ca57
commit df1ac404fc
1 changed files with 1 additions and 1 deletions

View File

@ -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(),