Skip to content

Commit

Permalink
refactor: delete test entirely
Browse files Browse the repository at this point in the history
Duplicative of `TestSubmitPayForBlob` in signer_test.go
  • Loading branch information
rootulp committed Nov 27, 2023
1 parent f427908 commit efcb52d
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions app/test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"fmt"
"os"
"testing"
"time"

"github.com/celestiaorg/celestia-app/test/util/blobfactory"
"github.com/celestiaorg/celestia-app/test/util/testfactory"
Expand Down Expand Up @@ -286,25 +285,6 @@ func (s *IntegrationTestSuite) TestEmptyBlock() {
}
}

// TestSubmitPayForBlob verifies the tx response ABCI code when SubmitPayForBlob
// is invoked with a 1 MiB blob.
func (s *IntegrationTestSuite) TestSubmitPayForBlob() {
t := s.T()
require.NoError(t, s.cctx.WaitForBlocks(1))
addr := testfactory.GetAddress(s.cctx.Keyring, s.accounts[141])
signer, err := user.SetupSigner(s.cctx.GoContext(), s.cctx.Keyring, s.cctx.GRPCClient, addr, s.ecfg)
require.NoError(t, err)

s.Run("1 mebibyte blob", func() {
subCtx, cancel := context.WithTimeout(s.cctx.GoContext(), 60*time.Second)
defer cancel()
res, err := signer.SubmitPayForBlob(subCtx, []*blob.Blob{newBlobWithSize(1 * mebibyte)}, user.SetGasLimit(1_000_000_000))
require.NoError(t, err)
require.NotNil(t, res)
require.Equal(t, abci.CodeTypeOK, res.Code, res.Logs)
})
}

func newBlobWithSize(size int) *blob.Blob {
ns := appns.MustNewV0(bytes.Repeat([]byte{1}, appns.NamespaceVersionZeroIDSize))
data := tmrand.Bytes(size)
Expand Down

0 comments on commit efcb52d

Please sign in to comment.