@@ -119,7 +119,7 @@ func TestAsyncPayloadCopyWhenPayloadSizeBelowMaxAllowed(t *testing.T) {
119119 require .Equal (t , EndOfResponseComplete , writer .Header ().Get (EndOfResponseTrailer ))
120120
121121 // reset it to its original value
122- MaxDirectResponseSize = interop .MaxPayloadSize
122+ MaxDirectResponseSize = int64 ( interop .MaxPayloadSize )
123123}
124124
125125func TestAsyncPayloadCopyWhenPayloadSizeEqualMaxAllowed (t * testing.T ) {
@@ -138,7 +138,7 @@ func TestAsyncPayloadCopyWhenPayloadSizeEqualMaxAllowed(t *testing.T) {
138138 require .Equal (t , EndOfResponseComplete , writer .Header ().Get (EndOfResponseTrailer ))
139139
140140 // reset it to its original value
141- MaxDirectResponseSize = interop .MaxPayloadSize
141+ MaxDirectResponseSize = int64 ( interop .MaxPayloadSize )
142142}
143143
144144func TestAsyncPayloadCopyWhenPayloadSizeAboveMaxAllowed (t * testing.T ) {
@@ -163,7 +163,7 @@ func TestAsyncPayloadCopyWhenPayloadSizeAboveMaxAllowed(t *testing.T) {
163163 require .Equal (t , EndOfResponseOversized , writer .Header ().Get (EndOfResponseTrailer ))
164164
165165 // reset it to its original value
166- MaxDirectResponseSize = interop .MaxPayloadSize
166+ MaxDirectResponseSize = int64 ( interop .MaxPayloadSize )
167167}
168168
169169// This is only allowed in streaming mode, currently.
@@ -183,7 +183,7 @@ func TestAsyncPayloadCopyWhenUnlimitedPayloadSizeAllowed(t *testing.T) {
183183 require .Equal (t , EndOfResponseComplete , writer .Header ().Get (EndOfResponseTrailer ))
184184
185185 // reset it to its original value
186- MaxDirectResponseSize = interop .MaxPayloadSize
186+ MaxDirectResponseSize = int64 ( interop .MaxPayloadSize )
187187}
188188
189189// We use an interruptable response writer which informs on a channel that it's ready to be interrupted after
@@ -275,7 +275,7 @@ func TestSendPayloadLimitedResponseWithinThresholdWithStreamingFunction(t *testi
275275 <- testFinished
276276
277277 // Reset to its default value, just in case other tests use them
278- MaxDirectResponseSize = interop .MaxPayloadSize
278+ MaxDirectResponseSize = int64 ( interop .MaxPayloadSize )
279279}
280280
281281func TestSendPayloadLimitedResponseAboveThresholdWithStreamingFunction (t * testing.T ) {
@@ -310,7 +310,7 @@ func TestSendPayloadLimitedResponseAboveThresholdWithStreamingFunction(t *testin
310310 <- testFinished
311311
312312 // Reset to its default value, just in case other tests use them
313- MaxDirectResponseSize = interop .MaxPayloadSize
313+ MaxDirectResponseSize = int64 ( interop .MaxPayloadSize )
314314}
315315
316316func TestSendStreamingInvokeResponseSuccessWithTrailers (t * testing.T ) {
0 commit comments