Skip to content

Commit

Permalink
wip: fix: failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Oct 25, 2024
1 parent bcc4f77 commit aecfe41
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/stretchr/testify/suite"

"github.com/pokt-network/poktroll/app/volatile"
"github.com/pokt-network/poktroll/cmd/poktrolld/cmd"
testkeeper "github.com/pokt-network/poktroll/testutil/keeper"
"github.com/pokt-network/poktroll/testutil/proof"
"github.com/pokt-network/poktroll/testutil/sample"
Expand Down Expand Up @@ -50,6 +51,10 @@ type settlementState struct {
sourceOwnerBalance *cosmostypes.Coin
}

func init() {
cmd.InitSDKConfig()
}

func TestTLMProcessorTestSuite(t *testing.T) {
suite.Run(t, new(tlmProcessorTestSuite))
}
Expand Down
6 changes: 4 additions & 2 deletions testutil/integration/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1008,9 +1008,11 @@ func newFaucetInitChainerFn(faucetBech32 string, faucetAmtUpokt int64) InitChain

// newProposerAddrBz returns a random proposer address in bytes.
func newProposerAddrBz(t *testing.T) []byte {
bech32 := sample.ConsAddressBech32()
addr, err := cosmostypes.ConsAddressFromBech32(bech32)
bech32 := sample.AccAddress()
addr, err := cosmostypes.AccAddressFromBech32(bech32)
require.NoError(t, err)

fmt.Printf("newProposerAddrBz: %s\n", addr.String())

return addr.Bytes()
}
4 changes: 4 additions & 0 deletions testutil/testclient/localnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (

"github.com/pokt-network/poktroll/app"
"github.com/pokt-network/poktroll/cmd/poktrolld/cmd"
tokenomicstypes "github.com/pokt-network/poktroll/x/tokenomics/types"
)

var (
Expand All @@ -38,6 +39,9 @@ var (
func init() {
cmd.InitSDKConfig()

// TODO_TECHDEBT: Remove once the DAO reward address is promoted to a tokenomics module param.
tokenomicstypes.DaoRewardAddress = "pokt1eeeksh2tvkh7wzmfrljnhw4wrhs55lcuvmekkw"

deps := depinject.Configs(
app.AppConfig(),
depinject.Supply(
Expand Down

0 comments on commit aecfe41

Please sign in to comment.