From 8b3cef2f7a90dfb9b08fdebe7bd8edd63776db00 Mon Sep 17 00:00:00 2001 From: Roger <50648015+RogerLamTd@users.noreply.github.com> Date: Fri, 3 Nov 2023 18:20:35 -0700 Subject: [PATCH] fix(tests): fix workflow errors (#440) Co-authored-by: David --- pkg/tx_list_validator/tx_list_validator_test.go | 2 +- proposer/config_test.go | 3 +++ .../{dummty_producer_test.go => dummy_producer_test.go} | 0 3 files changed, 4 insertions(+), 1 deletion(-) rename prover/proof_producer/{dummty_producer_test.go => dummy_producer_test.go} (100%) diff --git a/pkg/tx_list_validator/tx_list_validator_test.go b/pkg/tx_list_validator/tx_list_validator_test.go index cf7d9a3e9..7a2a7f684 100644 --- a/pkg/tx_list_validator/tx_list_validator_test.go +++ b/pkg/tx_list_validator/tx_list_validator_test.go @@ -69,7 +69,7 @@ func TestIsTxListValid(t *testing.T) { { "txListBytes not decodable to rlp", chainID, - randBytes(1), + randBytes(0), HintNone, 0, }, diff --git a/proposer/config_test.go b/proposer/config_test.go index be1d7bb8e..da5ce1615 100644 --- a/proposer/config_test.go +++ b/proposer/config_test.go @@ -52,6 +52,7 @@ func (s *ProposerTestSuite) TestNewConfigFromCliContext() { s.Equal(uint64(tierFee), c.OptimisticTierFee.Uint64()) s.Equal(uint64(tierFee), c.SgxTierFee.Uint64()) s.Equal(uint64(tierFee), c.PseZkevmTierFee.Uint64()) + s.Equal(uint64(tierFee), c.SgxAndPseZkevmTierFee.Uint64()) s.Equal(uint64(15), c.TierFeePriceBump.Uint64()) s.Equal(uint64(5), c.MaxTierFeePriceBumps) @@ -82,6 +83,7 @@ func (s *ProposerTestSuite) TestNewConfigFromCliContext() { "--" + flags.OptimisticTierFee.Name, fmt.Sprint(tierFee), "--" + flags.SgxTierFee.Name, fmt.Sprint(tierFee), "--" + flags.PseZkevmTierFee.Name, fmt.Sprint(tierFee), + "--" + flags.SgxAndPseZkevmTierFee.Name, fmt.Sprint(tierFee), "--" + flags.TierFeePriceBump.Name, "15", "--" + flags.MaxTierFeePriceBumps.Name, "5", })) @@ -146,6 +148,7 @@ func (s *ProposerTestSuite) SetupApp() *cli.App { &cli.Uint64Flag{Name: flags.OptimisticTierFee.Name}, &cli.Uint64Flag{Name: flags.SgxTierFee.Name}, &cli.Uint64Flag{Name: flags.PseZkevmTierFee.Name}, + &cli.Uint64Flag{Name: flags.SgxAndPseZkevmTierFee.Name}, &cli.Uint64Flag{Name: flags.ProposeBlockTxReplacementMultiplier.Name}, &cli.DurationFlag{Name: flags.RPCTimeout.Name}, &cli.DurationFlag{Name: flags.WaitReceiptTimeout.Name}, diff --git a/prover/proof_producer/dummty_producer_test.go b/prover/proof_producer/dummy_producer_test.go similarity index 100% rename from prover/proof_producer/dummty_producer_test.go rename to prover/proof_producer/dummy_producer_test.go