Skip to content

Commit

Permalink
chore: add a background derived context for sending to test robustnes…
Browse files Browse the repository at this point in the history
…s of peer expiry
  • Loading branch information
rahulghangas committed Jul 29, 2021
1 parent ec1a158 commit 0ec72dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var _ = Describe("Transport", func() {
_, ok := table.PeerAddress(privKey2.Signatory())
Expect(ok).To(BeTrue())

ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithCancel(context.Background())
go func() {
transport.Send(ctx, privKey2.Signatory(), wire.Msg{})
}()
Expand Down

0 comments on commit 0ec72dc

Please sign in to comment.