@@ -453,7 +453,8 @@ func TestEdgeInsertionDeletion(t *testing.T) {
453453 require .ErrorIs (t , err , ErrEdgeNotFound )
454454 _ , _ , _ , err = graph .FetchChannelEdgesByID (chanID )
455455 require .ErrorIs (t , err , ErrZombieEdge )
456- isZombie , _ , _ := graph .IsZombieEdge (chanID )
456+ isZombie , _ , _ , err := graph .IsZombieEdge (chanID )
457+ require .NoError (t , err )
457458 require .True (t , isZombie )
458459
459460 // Finally, attempt to delete a (now) non-existent edge within the
@@ -2205,7 +2206,9 @@ func TestFilterKnownChanIDsZombieRevival(t *testing.T) {
22052206 )
22062207
22072208 isZombie := func (scid lnwire.ShortChannelID ) bool {
2208- zombie , _ , _ := graph .IsZombieEdge (scid .ToUint64 ())
2209+ zombie , _ , _ , err := graph .IsZombieEdge (scid .ToUint64 ())
2210+ require .NoError (t , err )
2211+
22092212 return zombie
22102213 }
22112214
@@ -3844,15 +3847,17 @@ func TestGraphZombieIndex(t *testing.T) {
38443847
38453848 // Since the edge is known the graph and it isn't a zombie, IsZombieEdge
38463849 // should not report the channel as a zombie.
3847- isZombie , _ , _ := graph .IsZombieEdge (edge .ChannelID )
3850+ isZombie , _ , _ , err := graph .IsZombieEdge (edge .ChannelID )
3851+ require .NoError (t , err )
38483852 require .False (t , isZombie )
38493853 assertNumZombies (t , graph , 0 )
38503854
38513855 // If we delete the edge and mark it as a zombie, then we should expect
38523856 // to see it within the index.
3853- err : = graph .DeleteChannelEdges (false , true , edge .ChannelID )
3857+ err = graph .DeleteChannelEdges (false , true , edge .ChannelID )
38543858 require .NoError (t , err , "unable to mark edge as zombie" )
3855- isZombie , pubKey1 , pubKey2 := graph .IsZombieEdge (edge .ChannelID )
3859+ isZombie , pubKey1 , pubKey2 , err := graph .IsZombieEdge (edge .ChannelID )
3860+ require .NoError (t , err )
38563861 require .True (t , isZombie )
38573862 require .Equal (t , node1 .PubKeyBytes , pubKey1 )
38583863 require .Equal (t , node2 .PubKeyBytes , pubKey2 )
@@ -3868,7 +3873,8 @@ func TestGraphZombieIndex(t *testing.T) {
38683873 t , graph .MarkEdgeLive (edge .ChannelID ), ErrZombieEdgeNotFound ,
38693874 )
38703875
3871- isZombie , _ , _ = graph .IsZombieEdge (edge .ChannelID )
3876+ isZombie , _ , _ , err = graph .IsZombieEdge (edge .ChannelID )
3877+ require .NoError (t , err )
38723878 require .False (t , isZombie )
38733879
38743880 assertNumZombies (t , graph , 0 )
@@ -3880,7 +3886,8 @@ func TestGraphZombieIndex(t *testing.T) {
38803886 )
38813887 require .NoError (t , err , "unable to mark edge as zombie" )
38823888
3883- isZombie , _ , _ = graph .IsZombieEdge (edge .ChannelID )
3889+ isZombie , _ , _ , err = graph .IsZombieEdge (edge .ChannelID )
3890+ require .NoError (t , err )
38843891 require .True (t , isZombie )
38853892 assertNumZombies (t , graph , 1 )
38863893}
0 commit comments