update context tests to expect provider validation to be skipped

This commit is contained in:
Ben Drucker 2020-05-07 22:23:11 -07:00
parent 16a08c6d8b
commit 07dbe7bd5f
1 changed files with 3 additions and 3 deletions

View File

@ -588,12 +588,12 @@ func TestContext2Validate_providerConfig_badEmpty(t *testing.T) {
})
p.PrepareProviderConfigResponse = providers.PrepareProviderConfigResponse{
Diagnostics: tfdiags.Diagnostics{}.Append(fmt.Errorf("bad")),
Diagnostics: tfdiags.Diagnostics{}.Append(fmt.Errorf("should not be called")),
}
diags := c.Validate()
if !diags.HasErrors() {
t.Fatalf("succeeded; want error")
if diags.HasErrors() {
t.Fatalf("unexpected error: %v", diags)
}
}