Skip to content

Commit 350a049

Browse files
authored
les: fix unittest (#21382)
1 parent 37564ce commit 350a049

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎les/fetcher_test.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func TestSequentialAnnouncementsLes2(t *testing.T) { testSequentialAnnouncements
6666
func TestSequentialAnnouncementsLes3(t *testing.T) { testSequentialAnnouncements(t, 3) }
6767

6868
func testSequentialAnnouncements(t *testing.T, protocol int) {
69-
s, c, teardown := newClientServerEnv(t, 4, protocol, nil, nil, 0, false, false)
69+
s, c, teardown := newClientServerEnv(t, 4, protocol, nil, nil, 0, false, false, true)
7070
defer teardown()
7171

7272
// Create connected peer pair.
@@ -101,7 +101,7 @@ func TestGappedAnnouncementsLes2(t *testing.T) { testGappedAnnouncements(t, 2) }
101101
func TestGappedAnnouncementsLes3(t *testing.T) { testGappedAnnouncements(t, 3) }
102102

103103
func testGappedAnnouncements(t *testing.T, protocol int) {
104-
s, c, teardown := newClientServerEnv(t, 4, protocol, nil, nil, 0, false, false)
104+
s, c, teardown := newClientServerEnv(t, 4, protocol, nil, nil, 0, false, false, true)
105105
defer teardown()
106106

107107
// Create connected peer pair.
@@ -183,7 +183,7 @@ func testTrustedAnnouncement(t *testing.T, protocol int) {
183183
ids = append(ids, n.String())
184184
}
185185
}
186-
_, c, teardown := newClientServerEnv(t, 0, protocol, nil, ids, 60, false, false)
186+
_, c, teardown := newClientServerEnv(t, 0, protocol, nil, ids, 60, false, false, true)
187187
defer teardown()
188188
defer func() {
189189
for i := 0; i < len(teardowns); i++ {
@@ -234,7 +234,7 @@ func testTrustedAnnouncement(t *testing.T, protocol int) {
234234
}
235235

236236
func TestInvalidAnnounces(t *testing.T) {
237-
s, c, teardown := newClientServerEnv(t, 4, lpv3, nil, nil, 0, false, false)
237+
s, c, teardown := newClientServerEnv(t, 4, lpv3, nil, nil, 0, false, false, true)
238238
defer teardown()
239239

240240
// Create connected peer pair.

0 commit comments

Comments
 (0)