@@ -29,8 +29,7 @@ func TestKV_Unaggregated_UnaggregatedAttestations(t *testing.T) {
2929 // cache a bitlist whose length is different from the attestation bitlist's length
3030 cache .seenAtt .Set (id .String (), []bitfield.Bitlist {{0b1001 }}, c .DefaultExpiration )
3131
32- atts , err := cache .UnaggregatedAttestations ()
33- require .NoError (t , err )
32+ atts := cache .UnaggregatedAttestations ()
3433 assert .Equal (t , 0 , len (atts ))
3534 })
3635}
@@ -169,8 +168,7 @@ func TestKV_Unaggregated_DeleteUnaggregatedAttestation(t *testing.T) {
169168 for _ , att := range atts {
170169 assert .NoError (t , cache .DeleteUnaggregatedAttestation (att ))
171170 }
172- returned , err := cache .UnaggregatedAttestations ()
173- require .NoError (t , err )
171+ returned := cache .UnaggregatedAttestations ()
174172 assert .DeepEqual (t , []ethpb.Att {}, returned )
175173 })
176174
@@ -234,11 +232,10 @@ func TestKV_Unaggregated_DeleteSeenUnaggregatedAttestations(t *testing.T) {
234232 assert .NoError (t , err )
235233 assert .Equal (t , 1 , count )
236234 assert .Equal (t , 2 , cache .UnaggregatedAttestationCount ())
237- returned , err := cache .UnaggregatedAttestations ()
235+ returned := cache .UnaggregatedAttestations ()
238236 sort .Slice (returned , func (i , j int ) bool {
239237 return bytes .Compare (returned [i ].GetAggregationBits (), returned [j ].GetAggregationBits ()) < 0
240238 })
241- require .NoError (t , err )
242239 assert .DeepEqual (t , []ethpb.Att {atts [0 ], atts [2 ]}, returned )
243240 })
244241
@@ -261,8 +258,7 @@ func TestKV_Unaggregated_DeleteSeenUnaggregatedAttestations(t *testing.T) {
261258 assert .NoError (t , err )
262259 assert .Equal (t , 3 , count )
263260 assert .Equal (t , 0 , cache .UnaggregatedAttestationCount ())
264- returned , err := cache .UnaggregatedAttestations ()
265- require .NoError (t , err )
261+ returned := cache .UnaggregatedAttestations ()
266262 assert .DeepEqual (t , []ethpb.Att {}, returned )
267263 })
268264
0 commit comments