@@ -66,7 +66,7 @@ func TestSequentialAnnouncementsLes2(t *testing.T) { testSequentialAnnouncements
6666func TestSequentialAnnouncementsLes3 (t * testing.T ) { testSequentialAnnouncements (t , 3 ) }
6767
6868func 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) }
101101func TestGappedAnnouncementsLes3 (t * testing.T ) { testGappedAnnouncements (t , 3 ) }
102102
103103func 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
236236func 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