From 3bddbd9f6f547cdc27c46e3c21515181d1264397 Mon Sep 17 00:00:00 2001 From: RogerLamTd Date: Mon, 30 Oct 2023 14:40:39 -0700 Subject: [PATCH 1/4] test --- pkg/rpc/subscription_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/rpc/subscription_test.go b/pkg/rpc/subscription_test.go index 7ce6ced11..9cf08ab60 100644 --- a/pkg/rpc/subscription_test.go +++ b/pkg/rpc/subscription_test.go @@ -16,6 +16,10 @@ func TestSubscribeEvent(t *testing.T) { })) } +func Test(t *testing.T) { + require.True(t, true) +} + func TestSubscribeBlockVerified(t *testing.T) { require.NotNil(t, SubscribeBlockVerified( newTestClient(t).TaikoL1, From 0d5ec3c5632101fa2c660fc1711e9a710c7cdfbb Mon Sep 17 00:00:00 2001 From: RogerLamTd Date: Tue, 31 Oct 2023 17:18:28 -0700 Subject: [PATCH 2/4] fix tests, rename file --- driver/state/l1_current_test.go | 5 +---- proposer/config_test.go | 3 +++ .../{dummty_producer_test.go => dummy_producer_test.go} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename prover/proof_producer/{dummty_producer_test.go => dummy_producer_test.go} (100%) diff --git a/driver/state/l1_current_test.go b/driver/state/l1_current_test.go index d7fcdda02..e0602d7ab 100644 --- a/driver/state/l1_current_test.go +++ b/driver/state/l1_current_test.go @@ -26,12 +26,9 @@ func (s *DriverStateTestSuite) TestSetL1Current() { func (s *DriverStateTestSuite) TestResetL1CurrentEmptyHeight() { _, err := s.s.ResetL1Current(context.Background(), common.Big0) s.Nil(err) - - _, err = s.s.ResetL1Current(context.Background(), common.Big0) - s.Nil(err) } -func (s *DriverStateTestSuite) TestResetL1CurrentEmptyID() { +func (s *DriverStateTestSuite) TestResetL1CurrentGtCurrentHeight() { _, err := s.s.ResetL1Current(context.Background(), common.Big1) s.ErrorContains(err, "not found") } diff --git a/proposer/config_test.go b/proposer/config_test.go index 5d4faee0b..95a55b0e4 100644 --- a/proposer/config_test.go +++ b/proposer/config_test.go @@ -53,6 +53,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) @@ -84,6 +85,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", })) @@ -169,6 +171,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 From 4711e3f0fbca2991e55babe192e2d75878e35ed9 Mon Sep 17 00:00:00 2001 From: RogerLamTd Date: Tue, 31 Oct 2023 17:19:21 -0700 Subject: [PATCH 3/4] rm test --- pkg/rpc/subscription_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/rpc/subscription_test.go b/pkg/rpc/subscription_test.go index 9cf08ab60..7ce6ced11 100644 --- a/pkg/rpc/subscription_test.go +++ b/pkg/rpc/subscription_test.go @@ -16,10 +16,6 @@ func TestSubscribeEvent(t *testing.T) { })) } -func Test(t *testing.T) { - require.True(t, true) -} - func TestSubscribeBlockVerified(t *testing.T) { require.NotNil(t, SubscribeBlockVerified( newTestClient(t).TaikoL1, From 398d1dba55d7340a3e91d77c3f93c18e5d3dfadc Mon Sep 17 00:00:00 2001 From: RogerLamTd Date: Wed, 1 Nov 2023 19:05:53 -0700 Subject: [PATCH 4/4] txListBytes not decodable guaranteed --- pkg/tx_list_validator/tx_list_validator_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, },