discovery: revert passing ctx through to Start methods

This commit is contained in:
Elle Mouton committed 2025-05-22 14:14:39 +02:00
1 parent da3deeee7c
commit c68a19c0ba
8 files changed
+35 -51

No files matched your search

+2 -2
View File
@@ -994,7 +994,7 @@ func createTestCtx(t *testing.T, startHeight uint32, isChanPeer bool) (
ScidCloser: newMockScidCloser(isChanPeer),
}, selfKeyDesc)
if err := gossiper.Start(context.Background()); err != nil {
if err := gossiper.Start(); err != nil {
return nil, fmt.Errorf("unable to start router: %w", err)
}
@@ -1692,7 +1692,7 @@ func TestSignatureAnnouncementRetryAtStartup(t *testing.T) {
KeyLocator: tCtx.gossiper.selfKeyLoc,
})
require.NoError(t, err, "unable to recreate gossiper")
if err := gossiper.Start(context.Background()); err != nil {
if err := gossiper.Start(); err != nil {
t.Fatalf("unable to start recreated gossiper: %v", err)
}
defer gossiper.Stop()