Skip to content

Commit

Permalink
mock fee state
Browse files Browse the repository at this point in the history
  • Loading branch information
rajranjan0608 committed Dec 5, 2024
1 parent 6854b47 commit 6e77fd5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions service/backend/pchain/construction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ func TestExportTxConstruction(t *testing.T) {
require.NoError(t, err)

t.Run("preprocess endpoint", func(t *testing.T) {
shouldMockGetFeeState(clientMock)
resp, err := backend.ConstructionPreprocess(
ctx,
&types.ConstructionPreprocessRequest{
Expand All @@ -236,6 +235,7 @@ func TestExportTxConstruction(t *testing.T) {
})

t.Run("metadata endpoint", func(t *testing.T) {
shouldMockGetFeeState(clientMock)
clientMock.EXPECT().GetBlockchainID(ctx, constants.PChain.String()).Return(pChainID, nil)
clientMock.EXPECT().GetBlockchainID(ctx, constants.CChain.String()).Return(cChainID, nil)

Expand Down Expand Up @@ -436,7 +436,6 @@ func TestImportTxConstruction(t *testing.T) {
require.NoError(t, err)

t.Run("preprocess endpoint", func(t *testing.T) {
shouldMockGetFeeState(clientMock)
resp, err := backend.ConstructionPreprocess(
ctx,
&types.ConstructionPreprocessRequest{
Expand All @@ -450,6 +449,7 @@ func TestImportTxConstruction(t *testing.T) {
})

t.Run("metadata endpoint", func(t *testing.T) {
shouldMockGetFeeState(clientMock)
clientMock.EXPECT().GetBlockchainID(ctx, constants.PChain.String()).Return(pChainID, nil)
clientMock.EXPECT().GetBlockchainID(ctx, constants.CChain.String()).Return(cChainID, nil)

Expand Down Expand Up @@ -687,7 +687,6 @@ func TestAddValidatorTxConstruction(t *testing.T) {
require.NoError(t, err)

t.Run("preprocess endpoint", func(t *testing.T) {
shouldMockGetFeeState(clientMock)
resp, err := backend.ConstructionPreprocess(
ctx,
&types.ConstructionPreprocessRequest{
Expand Down Expand Up @@ -927,7 +926,6 @@ func TestAddDelegatorTxConstruction(t *testing.T) {
require.NoError(t, err)

t.Run("preprocess endpoint", func(t *testing.T) {
shouldMockGetFeeState(clientMock)
resp, err := backend.ConstructionPreprocess(
ctx,
&types.ConstructionPreprocessRequest{
Expand Down

0 comments on commit 6e77fd5

Please sign in to comment.