Skip to content

Commit

Permalink
moving poolDbConfig to other var declarations and adding deferred Tea…
Browse files Browse the repository at this point in the history
…rdown

Signed-off-by: Nikolay Nedkov <[email protected]>
  • Loading branch information
Psykepro committed Dec 16, 2022
1 parent 5b95e6e commit 1cb2d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/benchmarks/sequencer/pool_processing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ const (
invalidNonceStartingPercent = 90
)

var poolDbConfig = dbutils.NewPoolConfigFromEnv()

var (
ctx = context.Background()
poolDbConfig = dbutils.NewPoolConfigFromEnv()
sequencerPrivateKey = operations.DefaultSequencerPrivateKey
chainID = operations.DefaultL2ChainID
opsCfg = operations.GetDefaultOperationsConfig()
Expand All @@ -54,6 +53,7 @@ var (

func BenchmarkSequencerPoolProcess(b *testing.B) {
ctx := context.Background()
defer func() { require.NoError(b, operations.Teardown()) }()
opsman, client, pl, senderNonce, gasPrice := setup(ctx, b)
sendAndWaitTxs(b, senderNonce, client, gasPrice, pl, ctx)
startAndSetupSequencer(b, opsman)
Expand Down

0 comments on commit 1cb2d62

Please sign in to comment.