Skip to content

Commit

Permalink
run go linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Manav-Aggarwal committed May 18, 2023
1 parent 6f8697b commit 1a27120
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/shares/compact_shares_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,13 @@ func Test_processCompactShares(t *testing.T) {
}
}

func TestAlSplit(t *testing.T) {
func TestAllSplit(t *testing.T) {
txs := testfactory.GenerateRandomlySizedTxs(1000, 150)
txShares, _, _, err := SplitTxs(txs)
require.NoError(t, err)
resTxs, err := ParseTxs(txShares)
require.NoError(t, err)
assert.Equal(t, resTxs, txs)

}

func TestParseRandomOutOfContextShares(t *testing.T) {
Expand All @@ -141,10 +140,6 @@ func TestParseOutOfContextSharesUsingShareRanges(t *testing.T) {
txShares, _, shareRanges, err := SplitTxs(txs)
require.NoError(t, err)

resTxs, err := ParseTxs(txShares)
require.NoError(t, err)
assert.Equal(t, resTxs, txs)

for key, r := range shareRanges {
resTxs, err := ParseTxs(txShares[r.Start:r.End])
require.NoError(t, err)
Expand Down

0 comments on commit 1a27120

Please sign in to comment.