Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianElvis committed Jan 31, 2025
1 parent eff5ab7 commit 2655357
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
cosmossdk.io/errors v1.0.1
cosmossdk.io/math v1.4.0
github.com/avast/retry-go/v4 v4.5.1
github.com/babylonlabs-io/babylon v1.0.1-rc.0.0.20250128115020-02612f9bc3a2
github.com/babylonlabs-io/babylon v1.99.0-snapshot.250131
github.com/babylonlabs-io/babylon-sdk/demo v0.0.0-20240814002132-55e711397a82
github.com/babylonlabs-io/finality-gadget v0.1.1
github.com/btcsuite/btcd v0.24.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX
github.com/aws/aws-sdk-go v1.44.312 h1:llrElfzeqG/YOLFFKjg1xNpZCFJ2xraIi3PqSuP+95k=
github.com/aws/aws-sdk-go v1.44.312/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
github.com/babylonlabs-io/babylon v1.0.1-rc.0.0.20250128115020-02612f9bc3a2 h1:MUpiOtcvAn3HjyVu3g/T9folAkIqGg0yydrfoTZTjHM=
github.com/babylonlabs-io/babylon v1.0.1-rc.0.0.20250128115020-02612f9bc3a2/go.mod h1:NxghSOJHuPCwdIKUsSrmmbVJweTRCLW2tLJ4UjlSwUc=
github.com/babylonlabs-io/babylon v1.99.0-snapshot.250131 h1:sw6c4Rkd2SwtZnLSFyVPMuf8yor/lNTQt17XP2P3AgY=
github.com/babylonlabs-io/babylon v1.99.0-snapshot.250131/go.mod h1:NxghSOJHuPCwdIKUsSrmmbVJweTRCLW2tLJ4UjlSwUc=
github.com/babylonlabs-io/babylon-sdk/demo v0.0.0-20240814002132-55e711397a82 h1:BwgtEtrrbtwQo4FEsoVqeUIHiqJr5krZt6ds3g1SM4s=
github.com/babylonlabs-io/babylon-sdk/demo v0.0.0-20240814002132-55e711397a82/go.mod h1:QqEn1sL4RPG7DJ94XFYvuvEELml64s5XwPQpTayXJss=
github.com/babylonlabs-io/babylon-sdk/x v0.0.0-20240814002132-55e711397a82 h1:F9U6iH+RqXo2ColXvGGByWDY0DdyAMnIgjpxQbWooiE=
Expand Down
4 changes: 1 addition & 3 deletions itest/container/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@ type ImageConfig struct {
BabylonVersion string
}

//nolint:deadcode
const (
dockerBabylondRepository = "babylonlabs-io/babylond"
dockerBabylondRepository = "babylonlabs/babylond"
)

// NewImageConfig returns ImageConfig needed for running e2e test.
func NewImageConfig(t *testing.T) ImageConfig {
babylondVersion, err := testutil.GetBabylonVersion()
require.NoError(t, err)
babylondVersion = "latest" // TODO: change back
return ImageConfig{
BabylonRepository: dockerBabylondRepository,
BabylonVersion: babylondVersion,
Expand Down
3 changes: 0 additions & 3 deletions itest/opstackl2/op_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
// - CommitPubRandList
// - QueryLastPublicRandCommit
func TestPubRandCommitment(t *testing.T) {
t.Parallel()
ctm := StartOpL2ConsumerManager(t)
defer ctm.Stop(t)

Expand Down Expand Up @@ -53,7 +52,6 @@ func TestPubRandCommitment(t *testing.T) {
// TestFinalitySigSubmission tests the consumer controller's function:
// - SubmitBatchFinalitySigs
func TestFinalitySigSubmission(t *testing.T) {
t.Parallel()
ctm := StartOpL2ConsumerManager(t)
defer ctm.Stop(t)

Expand Down Expand Up @@ -107,7 +105,6 @@ func TestFinalitySigSubmission(t *testing.T) {
// TestFinalityProviderHasPower tests the consumer controller's function:
// - QueryFinalityProviderHasPower
func TestFinalityProviderHasPower(t *testing.T) {
t.Parallel()
ctm := StartOpL2ConsumerManager(t)
defer ctm.Stop(t)

Expand Down
7 changes: 1 addition & 6 deletions itest/opstackl2/op_test_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
"github.com/btcsuite/btcd/btcec/v2"
sdkquerytypes "github.com/cosmos/cosmos-sdk/types/query"
"github.com/decred/dcrd/dcrec/secp256k1/v4"
"github.com/lightningnetwork/lnd/signal"
"github.com/ory/dockertest/v3"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
Expand Down Expand Up @@ -113,12 +112,8 @@ func StartOpL2ConsumerManager(t *testing.T) *OpL2ConsumerTestManager {
// create Babylon FP config
babylonFpCfg := createBabylonFpConfig(t, keyDir, testDir, manager, babylond)

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

// create EOTS handler and EOTS gRPC clients for Babylon and consumer
eotsHandler, EOTSClients := base_test_manager.StartEotsManagers(t, logger, testDir, babylonFpCfg, consumerFpCfg, &shutdownInterceptor)
eotsHandler, EOTSClients := base_test_manager.StartEotsManagers(t, logger, testDir, babylonFpCfg, consumerFpCfg)

// create Babylon consumer controller
babylonConsumerController, err := bbncc.NewBabylonConsumerController(babylonFpCfg.BabylonConfig, &babylonFpCfg.BTCNetParams, logger)
Expand Down
2 changes: 0 additions & 2 deletions itest/test-manager/base_test_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
"github.com/btcsuite/btcd/wire"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkquerytypes "github.com/cosmos/cosmos-sdk/types/query"
"github.com/lightningnetwork/lnd/signal"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
Expand Down Expand Up @@ -554,7 +553,6 @@ func StartEotsManagers(
testDir string,
babylonFpCfg *fpcfg.Config,
consumerFpCfg *fpcfg.Config,
shutdownInterceptor *signal.Interceptor,
) (*e2eutils.EOTSServerHandler, []*eotsclient.EOTSManagerGRpcClient) {
fpCfgs := []*fpcfg.Config{babylonFpCfg, consumerFpCfg}
eotsClients := make([]*eotsclient.EOTSManagerGRpcClient, len(fpCfgs))
Expand Down

0 comments on commit 2655357

Please sign in to comment.