diff --git a/.changelog/11194.txt b/.changelog/11194.txt new file mode 100644 index 00000000000..e05dbce6fcd --- /dev/null +++ b/.changelog/11194.txt @@ -0,0 +1,3 @@ +```release-note:none +none +``` \ No newline at end of file diff --git a/google/fwtransport/framework_config_test.go b/google/fwtransport/framework_config_test.go index 1dd83c6a713..c0ed0ff89c5 100644 --- a/google/fwtransport/framework_config_test.go +++ b/google/fwtransport/framework_config_test.go @@ -328,6 +328,9 @@ func TestFrameworkProvider_LoadAndValidateFramework_credentials(t *testing.T) { } t.Fatalf("did not expect error, but [%d] error(s) occurred", diags.ErrorsCount()) } + if tc.ExpectError && !diags.HasError() { + t.Fatalf("expected error, but no errors occurred") + } if !data.Credentials.Equal(tc.ExpectedDataModelValue) { t.Fatalf("want credentials to be `%s`, but got the value `%s`", tc.ExpectedDataModelValue, data.Credentials.String()) }