Skip to content

Commit

Permalink
refactor: remove _flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Nov 10, 2023
1 parent 50e3282 commit 2a2cd22
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/square/square_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,10 @@ func generateBlobTxsWithNamespaces(t *testing.T, namespaces []ns.Namespace, blob
)
}

// The "_Flaky" suffix indicates that the test may fail non-deterministically especially when executed in CI.
func TestSquareBlobShareRange_Flaky(t *testing.T) {
rand := tmrand.NewRand()
func TestSquareBlobShareRange(t *testing.T) {
signer, err := testnode.NewOfflineSigner()
require.NoError(t, err)
txs := blobfactory.RandBlobTxsRandomlySized(signer, rand, 10, 1000, 10).ToSliceOfBytes()
txs := blobfactory.RandBlobTxsRandomlySized(signer, tmrand.NewRand(), 10, 1000, 10).ToSliceOfBytes()

builder, err := square.NewBuilder(appconsts.DefaultSquareSizeUpperBound, appconsts.LatestVersion, txs...)
require.NoError(t, err)
Expand All @@ -153,6 +151,7 @@ func TestSquareBlobShareRange_Flaky(t *testing.T) {
for blobIdx := range blobTx.Blobs {
shareRange, err := square.BlobShareRange(txs, pfbIdx, blobIdx, appconsts.LatestVersion)
require.NoError(t, err)
require.LessOrEqual(t, shareRange.End, len(dataSquare))
blobShares := dataSquare[shareRange.Start:shareRange.End]
blobSharesBytes, err := rawData(blobShares)
require.NoError(t, err)
Expand Down

0 comments on commit 2a2cd22

Please sign in to comment.