Skip to content

Commit a678918

Browse files
committed
fix: Re-add logic for setting chunk size in the context of E2E tests using grpcwrap package
This was removed, incorrectly, in #37899
1 parent 9fda804 commit a678918

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/grpcwrap/provider6.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,10 @@ func (p *provider6) ConfigureStateStore(ctx context.Context, req *tfplugin6.Conf
982982
return resp, nil
983983
}
984984

985+
// If this isn't present, chunk size is 0 and downstream code
986+
// acts like there is no state at all.
987+
p.chunkSize = configureResp.Capabilities.ChunkSize
988+
985989
resp.Diagnostics = convert.AppendProtoDiag(resp.Diagnostics, configureResp.Diagnostics)
986990
resp.Capabilities = &tfplugin6.StateStoreServerCapabilities{
987991
ChunkSize: configureResp.Capabilities.ChunkSize,

0 commit comments

Comments
 (0)