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.
pull/26357/head
James Bardin 6 years ago
parent 537070ca57
commit df1ac404fc

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

Loading…
Cancel
Save