Skip to content

Commit

Permalink
remove unnecessary testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
sontrinh16 committed Dec 2, 2023
1 parent 00ff475 commit f0e2e9c
Showing 1 changed file with 0 additions and 58 deletions.
58 changes: 0 additions & 58 deletions x/blob/client/testutil/integration_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package testutil

import (
"bytes"
"encoding/hex"
"fmt"
"os"
Expand Down Expand Up @@ -96,22 +95,6 @@ func (s *IntegrationTestSuite) TestSubmitPayForBlob() {
`, hex.EncodeToString(appns.RandomBlobNamespaceID()), hexBlob, hex.EncodeToString(appns.RandomBlobNamespaceID()), hexBlob)
validPropFile := createTestFile(s.T(), validBlob)

invalidBlob := fmt.Sprintf(`
{
"Blobs": [
{
"namespaceId": "%s",
"blob": "%s"
},
{
"namespaceId": "%s",
"blob": "%s"
}
]
}
`, hex.EncodeToString(bytes.Repeat([]byte{0}, 8)), hexBlob, hex.EncodeToString(bytes.Repeat([]byte{0}, 8)), hexBlob)
invalidPropFile := createTestFile(s.T(), invalidBlob)

testCases := []struct {
name string
args []string
Expand All @@ -132,47 +115,6 @@ func (s *IntegrationTestSuite) TestSubmitPayForBlob() {
expectedCode: 0,
respType: &sdk.TxResponse{},
},
{
name: "unsupported share version",
args: []string{
validPropFile.Name(),
fmt.Sprintf("--from=%s", username),
fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock),
fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, sdk.NewInt(2))).String()),
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=1", paycli.FlagShareVersion),
},
expectErr: true,
expectedCode: 0,
respType: &sdk.TxResponse{},
},
{
name: "invalid namespace ID",
args: []string{
invalidPropFile.Name(),
fmt.Sprintf("--from=%s", username),
fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock),
fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, sdk.NewInt(2))).String()),
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
},
expectErr: true,
expectedCode: 0,
respType: &sdk.TxResponse{},
},
{
name: "invalid namespace version",
args: []string{
validPropFile.Name(),
fmt.Sprintf("--from=%s", username),
fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock),
fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, sdk.NewInt(2))).String()),
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=1", paycli.FlagNamespaceVersion),
},
expectErr: true,
expectedCode: 0,
respType: &sdk.TxResponse{},
},
}

for _, tc := range testCases {
Expand Down

0 comments on commit f0e2e9c

Please sign in to comment.