Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Sep 26, 2024
1 parent 5729f4e commit 9bb309f
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions itest/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import (
sdkquerytypes "github.com/cosmos/cosmos-sdk/types/query"
sttypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/lightningnetwork/lnd/kvdb"
"github.com/lightningnetwork/lnd/signal"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -144,7 +143,6 @@ type TestManager struct {
BabylonClient *babylonclient.BabylonController
WalletPubKey *btcec.PublicKey
MinerAddr btcutil.Address
serverStopper *signal.Interceptor
wg *sync.WaitGroup
serviceAddress string
StakerClient *dc.StakerServiceJsonRpcClient
Expand Down Expand Up @@ -322,9 +320,6 @@ func StartManager(
walletPubKey, err := btcec.ParsePubKey(pubKeyBytes)
require.NoError(t, err)

//interceptor, err := signal.Intercept()
//require.NoError(t, err)

addressString := fmt.Sprintf("127.0.0.1:%d", testutil.AllocateUniquePort(t))
addrPort := netip.MustParseAddrPort(addressString)
address := net.TCPAddrFromAddrPort(addrPort)
Expand Down Expand Up @@ -354,13 +349,12 @@ func StartManager(
require.NoError(t, err)

return &TestManager{
Config: cfg,
Db: dbbackend,
Sa: stakerApp,
BabylonClient: bl,
WalletPubKey: walletPubKey,
MinerAddr: minerAddressDecoded,
//serverStopper: &interceptor,
Config: cfg,
Db: dbbackend,
Sa: stakerApp,
BabylonClient: bl,
WalletPubKey: walletPubKey,
MinerAddr: minerAddressDecoded,
wg: &wg,
serviceAddress: addressString,
StakerClient: stakerClient,
Expand Down Expand Up @@ -409,9 +403,6 @@ func (tm *TestManager) RestartAppWithAction(t *testing.T, ctx context.Context, c
stakerApp, err := staker.NewStakerAppFromConfig(tm.Config, logger, zapLogger, dbbackend, m)
require.NoError(t, err)

//interceptor, err := signal.Intercept()
//require.NoError(t, err)

service := service.NewStakerService(
tm.Config,
stakerApp,
Expand All @@ -432,7 +423,6 @@ func (tm *TestManager) RestartAppWithAction(t *testing.T, ctx context.Context, c
// Wait for the server to start
time.Sleep(3 * time.Second)

//tm.serverStopper = &interceptor
tm.wg = &wg
tm.Db = dbbackend
tm.Sa = stakerApp
Expand Down

0 comments on commit 9bb309f

Please sign in to comment.