We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3bd371 commit f116924Copy full SHA for f116924
internal/providers/testing/provider_mock.go
@@ -361,6 +361,9 @@ func (p *MockProvider) WriteStateBytes(r providers.WriteStateBytesRequest) (resp
361
362
// If we haven't already, record in the mock that
363
// the matching workspace exists
364
+ if p.MockStates == nil {
365
+ p.MockStates = make(map[string]interface{})
366
+ }
367
p.MockStates[r.StateId] = true
368
369
return p.WriteStateBytesResponse
0 commit comments