Skip to content

Commit

Permalink
use deterministic seed for test data
Browse files Browse the repository at this point in the history
This was causing the test to fail in approx 5% of cases
  • Loading branch information
geoknee committed Sep 25, 2024
1 parent e81c50d commit 2526dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-batcher/batcher/channel_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ func TestChannelManager_TxData(t *testing.T) {
require.Equal(t, tc.chooseBlobsWhenChannelCreated, m.defaultCfg.UseBlobs)

// 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)
m.blocks = []*types.Block{blockA}

Expand Down

0 comments on commit 2526dc0

Please sign in to comment.