Commit d90e4340 authored by George Knee's avatar George Knee Committed by GitHub

use deterministic seed for test data (#12129)

This was causing the test to fail in approx 5% of cases
parent d125012b
...@@ -567,7 +567,7 @@ func TestChannelManager_TxData(t *testing.T) { ...@@ -567,7 +567,7 @@ func TestChannelManager_TxData(t *testing.T) {
require.Equal(t, tc.chooseBlobsWhenChannelCreated, m.defaultCfg.UseBlobs) require.Equal(t, tc.chooseBlobsWhenChannelCreated, m.defaultCfg.UseBlobs)
// Seed channel manager with a block // Seed channel manager with a block
rng := rand.New(rand.NewSource(time.Now().UnixNano())) rng := rand.New(rand.NewSource(99))
blockA := derivetest.RandomL2BlockWithChainId(rng, 200, defaultTestRollupConfig.L2ChainID) blockA := derivetest.RandomL2BlockWithChainId(rng, 200, defaultTestRollupConfig.L2ChainID)
m.blocks = []*types.Block{blockA} m.blocks = []*types.Block{blockA}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment