diff --git a/terraform/resource_provider_mock.go b/terraform/resource_provider_mock.go index f5315339f..95f8c56a2 100644 --- a/terraform/resource_provider_mock.go +++ b/terraform/resource_provider_mock.go @@ -94,6 +94,8 @@ func (p *MockResourceProvider) Close() error { func (p *MockResourceProvider) Input( input UIInput, c *ResourceConfig) (*ResourceConfig, error) { + p.Lock() + defer p.Unlock() p.InputCalled = true p.InputInput = input p.InputConfig = c