diff --git a/system_tests/espresso_escape_hatch_test.go b/system_tests/espresso_escape_hatch_test.go index f13259d4ca..f58c9e9761 100644 --- a/system_tests/espresso_escape_hatch_test.go +++ b/system_tests/espresso_escape_hatch_test.go @@ -55,10 +55,10 @@ func TestEspressoEscapeHatch(t *testing.T) { address := common.HexToAddress(lightClientAddress) txOpts := builder.L1Info.GetDefaultTransactOpts("Faucet", ctx) - if builder.L2.ConsensusNode.TxStreamer.EscapeHatchEnabled { + if builder.L2.ConsensusNode.TxStreamer.UseEscapeHatch { t.Fatal("testing not using escape hatch first") } - log.Info("Checking turning off the escape hatch") + log.Info("Checking turning on the escape hatch") // Start to check the escape hatch @@ -68,7 +68,11 @@ func TestEspressoEscapeHatch(t *testing.T) { log.Info("waiting for light client to report hotshot is down") err = waitForWith(ctx, 10*time.Minute, 10*time.Second, func() bool { log.Info("waiting for hotshot down") - return builder.L2.ConsensusNode.TxStreamer.EscapeHatchEnabled + live, err := lightclientmock.IsHotShotLive(t, builder.L1.Client, address, 1) + if err != nil { + log.Error("error checking hotshot live", "err", err) + } + return !live }) Require(t, err) @@ -115,7 +119,7 @@ func TestEspressoEscapeHatch(t *testing.T) { log.Info("testing escape hatch") // Modify it manually - builder.L2.ConsensusNode.TxStreamer.EscapeHatchEnabled = true + builder.L2.ConsensusNode.TxStreamer.UseEscapeHatch = true err = lightclientmock.FreezeL1Height(t, builder.L1.Client, address, &txOpts) Require(t, err) diff --git a/system_tests/espresso_sovereign_sequencer_test.go b/system_tests/espresso_sovereign_sequencer_test.go index 53cee6f161..f636ee6ee0 100644 --- a/system_tests/espresso_sovereign_sequencer_test.go +++ b/system_tests/espresso_sovereign_sequencer_test.go @@ -34,6 +34,7 @@ func createL1AndL2Node( builder.nodeConfig.BatchPoster.MaxDelay = -1000 * time.Hour builder.nodeConfig.BatchPoster.LightClientAddress = lightClientAddress builder.nodeConfig.BatchPoster.HotShotUrl = hotShotUrl + builder.nodeConfig.BatchPoster.UseEscapeHatch = false // validator config builder.nodeConfig.BlockValidator.Enable = true