@@ -2587,11 +2587,11 @@ func TestGRPCProvider_ReadStateBytes(t *testing.T) {
25872587		chunks  :=  []string {"hello" , "world" }
25882588		totalLength  :=  len (chunks [0 ]) +  len (chunks [1 ])
25892589		mockResp  :=  map [int ]struct  {
2590- 			resp  * proto.ReadStateBytes_ResponseChunk 
2590+ 			resp  * proto.ReadStateBytes_Response 
25912591			err   error 
25922592		}{
25932593			0 : {
2594- 				resp : & proto.ReadStateBytes_ResponseChunk {
2594+ 				resp : & proto.ReadStateBytes_Response {
25952595					Bytes :       []byte (chunks [0 ]),
25962596					TotalLength : int64 (totalLength ),
25972597					Range : & proto.StateRange {
@@ -2602,7 +2602,7 @@ func TestGRPCProvider_ReadStateBytes(t *testing.T) {
26022602				err : nil ,
26032603			},
26042604			1 : {
2605- 				resp : & proto.ReadStateBytes_ResponseChunk {
2605+ 				resp : & proto.ReadStateBytes_Response {
26062606					Bytes :       []byte (chunks [1 ]),
26072607					TotalLength : int64 (totalLength ),
26082608					Range : & proto.StateRange {
@@ -2613,12 +2613,12 @@ func TestGRPCProvider_ReadStateBytes(t *testing.T) {
26132613				err : nil ,
26142614			},
26152615			2 : {
2616- 				resp : nil ,
2616+ 				resp : & proto. ReadStateBytes_Response {} ,
26172617				err :  io .EOF ,
26182618			},
26192619		}
26202620		var  count  int 
2621- 		mockReadBytesClient .EXPECT ().Recv ().DoAndReturn (func () (* proto.ReadStateBytes_ResponseChunk , error ) {
2621+ 		mockReadBytesClient .EXPECT ().Recv ().DoAndReturn (func () (* proto.ReadStateBytes_Response , error ) {
26222622			ret  :=  mockResp [count ]
26232623			count ++ 
26242624			return  ret .resp , ret .err 
@@ -2663,11 +2663,11 @@ func TestGRPCProvider_ReadStateBytes(t *testing.T) {
26632663		var  incorrectLength  int64  =  999 
26642664		correctLength  :=  len (chunks [0 ]) +  len (chunks [1 ])
26652665		mockResp  :=  map [int ]struct  {
2666- 			resp  * proto.ReadStateBytes_ResponseChunk 
2666+ 			resp  * proto.ReadStateBytes_Response 
26672667			err   error 
26682668		}{
26692669			0 : {
2670- 				resp : & proto.ReadStateBytes_ResponseChunk {
2670+ 				resp : & proto.ReadStateBytes_Response {
26712671					Bytes :       []byte (chunks [0 ]),
26722672					TotalLength : incorrectLength ,
26732673					Range : & proto.StateRange {
@@ -2678,7 +2678,7 @@ func TestGRPCProvider_ReadStateBytes(t *testing.T) {
26782678				err : nil ,
26792679			},
26802680			1 : {
2681- 				resp : & proto.ReadStateBytes_ResponseChunk {
2681+ 				resp : & proto.ReadStateBytes_Response {
26822682					Bytes :       []byte (chunks [1 ]),
26832683					TotalLength : incorrectLength ,
26842684					Range : & proto.StateRange {
@@ -2689,12 +2689,12 @@ func TestGRPCProvider_ReadStateBytes(t *testing.T) {
26892689				err : nil ,
26902690			},
26912691			2 : {
2692- 				resp : nil ,
2692+ 				resp : & proto. ReadStateBytes_Response {} ,
26932693				err :  io .EOF ,
26942694			},
26952695		}
26962696		var  count  int 
2697- 		mockReadBytesClient .EXPECT ().Recv ().DoAndReturn (func () (* proto.ReadStateBytes_ResponseChunk , error ) {
2697+ 		mockReadBytesClient .EXPECT ().Recv ().DoAndReturn (func () (* proto.ReadStateBytes_Response , error ) {
26982698			ret  :=  mockResp [count ]
26992699			count ++ 
27002700			return  ret .resp , ret .err 
@@ -2770,7 +2770,7 @@ func TestGRPCProvider_ReadStateBytes(t *testing.T) {
27702770		).Return (mockReadBytesClient , nil )
27712771
27722772		// Define what will be returned by each call to Recv 
2773- 		mockReadBytesClient .EXPECT ().Recv ().Return (& proto.ReadStateBytes_ResponseChunk {
2773+ 		mockReadBytesClient .EXPECT ().Recv ().Return (& proto.ReadStateBytes_Response {
27742774			Diagnostics : []* proto.Diagnostic {
27752775				& proto.Diagnostic {
27762776					Severity : proto .Diagnostic_ERROR ,
@@ -2820,15 +2820,15 @@ func TestGRPCProvider_ReadStateBytes(t *testing.T) {
28202820		).Return (mockReadBytesClient , nil )
28212821
28222822		// Define what will be returned by each call to Recv 
2823- 		mockReadBytesClient .EXPECT ().Recv ().Return (& proto.ReadStateBytes_ResponseChunk {
2823+ 		mockReadBytesClient .EXPECT ().Recv ().Return (& proto.ReadStateBytes_Response {
28242824			Diagnostics : []* proto.Diagnostic {
28252825				& proto.Diagnostic {
28262826					Severity : proto .Diagnostic_WARNING ,
28272827					Summary :  "Warning from test" ,
28282828					Detail :   "This warning is forced by the test case" ,
28292829				},
28302830			},
2831- 		}, nil )
2831+ 		}, io . EOF )
28322832
28332833		// Act 
28342834		request  :=  providers.ReadStateBytesRequest {
@@ -2869,7 +2869,7 @@ func TestGRPCProvider_ReadStateBytes(t *testing.T) {
28692869		).Return (mockClient , nil )
28702870
28712871		mockError  :=  errors .New ("grpc error forced in test" )
2872- 		mockClient .EXPECT ().Recv ().Return (& proto.ReadStateBytes_ResponseChunk {}, mockError )
2872+ 		mockClient .EXPECT ().Recv ().Return (& proto.ReadStateBytes_Response {}, mockError )
28732873
28742874		// Act 
28752875		request  :=  providers.ReadStateBytesRequest {
0 commit comments