@@ -50,7 +50,7 @@ func TestStreamClientReadHeaderEntry(t *testing.T) {
50
50
}
51
51
52
52
for _ , testCase := range testCases {
53
- c := NewClient (context .Background (), "" , 0 , 500 * time .Millisecond , 0 )
53
+ c := NewClient (context .Background (), "" , false , 0 , 500 * time .Millisecond , 0 )
54
54
server , conn := net .Pipe ()
55
55
defer server .Close ()
56
56
defer c .Stop ()
@@ -118,7 +118,7 @@ func TestStreamClientReadResultEntry(t *testing.T) {
118
118
}
119
119
120
120
for _ , testCase := range testCases {
121
- c := NewClient (context .Background (), "" , 0 , 500 * time .Millisecond , 0 )
121
+ c := NewClient (context .Background (), "" , false , 0 , 500 * time .Millisecond , 0 )
122
122
server , conn := net .Pipe ()
123
123
defer server .Close ()
124
124
defer c .Stop ()
@@ -191,7 +191,7 @@ func TestStreamClientReadFileEntry(t *testing.T) {
191
191
},
192
192
}
193
193
for _ , testCase := range testCases {
194
- c := NewClient (context .Background (), "" , 0 , 500 * time .Millisecond , 0 )
194
+ c := NewClient (context .Background (), "" , false , 0 , 500 * time .Millisecond , 0 )
195
195
server , conn := net .Pipe ()
196
196
defer c .Stop ()
197
197
defer server .Close ()
@@ -215,7 +215,7 @@ func TestStreamClientReadFileEntry(t *testing.T) {
215
215
}
216
216
217
217
func TestStreamClientReadParsedProto (t * testing.T ) {
218
- c := NewClient (context .Background (), "" , 0 , 500 * time .Millisecond , 0 )
218
+ c := NewClient (context .Background (), "" , false , 0 , 500 * time .Millisecond , 0 )
219
219
serverConn , clientConn := net .Pipe ()
220
220
c .conn = clientConn
221
221
c .checkTimeout = 1 * time .Second
@@ -287,7 +287,7 @@ func TestStreamClientGetLatestL2Block(t *testing.T) {
287
287
clientConn .Close ()
288
288
}()
289
289
290
- c := NewClient (context .Background (), "" , 0 , 500 * time .Millisecond , 0 )
290
+ c := NewClient (context .Background (), "" , false , 0 , 500 * time .Millisecond , 0 )
291
291
c .conn = clientConn
292
292
c .checkTimeout = 1 * time .Second
293
293
c .allowStops = false
@@ -401,7 +401,7 @@ func TestStreamClientGetL2BlockByNumber(t *testing.T) {
401
401
clientConn .Close ()
402
402
}()
403
403
404
- c := NewClient (context .Background (), "" , 0 , 500 * time .Millisecond , 0 )
404
+ c := NewClient (context .Background (), "" , false , 0 , 500 * time .Millisecond , 0 )
405
405
c .header = & types.HeaderEntry {
406
406
TotalEntries : 4 ,
407
407
}
0 commit comments