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:
parent
537070ca57
commit
df1ac404fc
|
@ -341,7 +341,7 @@ func TestProviderDiff_timeoutInvalidValue(t *testing.T) {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Fatal("Expected provider.Diff to fail with invalid timeout value")
|
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) {
|
if !strings.Contains(err.Error(), expectedErrMsg) {
|
||||||
t.Fatalf("Unexpected error message: %q\nExpected message to contain %q",
|
t.Fatalf("Unexpected error message: %q\nExpected message to contain %q",
|
||||||
err.Error(),
|
err.Error(),
|
||||||
|
|
Loading…
Reference in New Issue