@@ -1880,7 +1880,7 @@ func TestHighestChanID(t *testing.T) {
1880
1880
1881
1881
// If we don't yet have any channels in the database, then we should
1882
1882
// get a channel ID of zero if we ask for the highest channel ID.
1883
- bestID , err := graph .HighestChanID ()
1883
+ bestID , err := graph .HighestChanID (ctx )
1884
1884
require .NoError (t , err , "unable to get highest ID" )
1885
1885
if bestID != 0 {
1886
1886
t .Fatalf ("best ID w/ no chan should be zero, is instead: %v" ,
@@ -1906,7 +1906,7 @@ func TestHighestChanID(t *testing.T) {
1906
1906
1907
1907
// Now that the edges has been inserted, we'll query for the highest
1908
1908
// known channel ID in the database.
1909
- bestID , err = graph .HighestChanID ()
1909
+ bestID , err = graph .HighestChanID (ctx )
1910
1910
require .NoError (t , err , "unable to get highest ID" )
1911
1911
1912
1912
if bestID != chanID2 .ToUint64 () {
@@ -1920,7 +1920,7 @@ func TestHighestChanID(t *testing.T) {
1920
1920
if err := graph .AddChannelEdge (ctx , & edge3 ); err != nil {
1921
1921
t .Fatalf ("unable to create channel edge: %v" , err )
1922
1922
}
1923
- bestID , err = graph .HighestChanID ()
1923
+ bestID , err = graph .HighestChanID (ctx )
1924
1924
require .NoError (t , err , "unable to get highest ID" )
1925
1925
1926
1926
if bestID != chanID3 .ToUint64 () {
0 commit comments