Skip to content

Commit 5860012

Browse files
committed
test: golang.org/x/net/context -> context
1 parent 26b38cf commit 5860012

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ require (
3535
github.com/stretchr/testify v1.10.0
3636
github.com/urfave/cli v1.22.14
3737
go.etcd.io/bbolt v1.3.11
38-
golang.org/x/net v0.38.0
3938
golang.org/x/sync v0.12.0
4039
google.golang.org/grpc v1.64.1
4140
google.golang.org/protobuf v1.34.2
@@ -185,6 +184,7 @@ require (
185184
golang.org/x/crypto v0.36.0 // indirect
186185
golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8 // indirect
187186
golang.org/x/mod v0.21.0 // indirect
187+
golang.org/x/net v0.38.0 // indirect
188188
golang.org/x/sys v0.31.0 // indirect
189189
golang.org/x/term v0.30.0 // indirect
190190
golang.org/x/text v0.23.0 // indirect

test/chainnotifier_mock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package test
22

33
import (
44
"bytes"
5+
"context"
56
"sync"
67
"time"
78

@@ -10,7 +11,6 @@ import (
1011
"github.com/lightninglabs/lndclient"
1112
"github.com/lightningnetwork/lnd/chainntnfs"
1213
"github.com/lightningnetwork/lnd/lnrpc/chainrpc"
13-
"golang.org/x/net/context"
1414
)
1515

1616
type mockChainNotifier struct {

test/lightning_client_mock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package test
22

33
import (
4+
"context"
45
"crypto/rand"
56
"encoding/hex"
67
"fmt"
@@ -17,7 +18,6 @@ import (
1718
"github.com/lightningnetwork/lnd/lntypes"
1819
"github.com/lightningnetwork/lnd/routing/route"
1920
"github.com/lightningnetwork/lnd/zpay32"
20-
"golang.org/x/net/context"
2121
)
2222

2323
type mockLightningClient struct {

test/router_mock.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package test
22

33
import (
4+
"context"
5+
46
"github.com/lightninglabs/lndclient"
57
"github.com/lightningnetwork/lnd/lntypes"
6-
"golang.org/x/net/context"
78
)
89

910
type mockRouter struct {

0 commit comments

Comments
 (0)