Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Apr 8, 2024
1 parent e5c1ec6 commit 3c71af5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package driver

import (
"context"
"errors"
"fmt"
"sync"
"time"

Expand Down Expand Up @@ -65,7 +65,7 @@ func (d *Driver) InitFromConfig(ctx context.Context, cfg *Config) (err error) {
if syncMode, err := d.rpc.L2.GetSyncMode(d.ctx); err != nil {
return err
} else if syncMode != d.SyncMode {
return errors.New("the type is inconsistent with taiko-geth's sync mode")
return fmt.Errorf("the type is inconsistent with taiko-geth's sync mode, expect: %s, actual: %s", syncMode, d.SyncMode)
}

if d.state, err = state.New(d.ctx, d.rpc); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion driver/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (s *DriverTestSuite) SetupTest() {
d := new(Driver)
ctx, cancel := context.WithCancel(context.Background())
s.Nil(d.InitFromConfig(ctx, &Config{
SyncMode: downloader.SnapSync.String(),
SyncMode: downloader.FullSync.String(),
ClientConfig: &rpc.ClientConfig{
L1Endpoint: os.Getenv("L1_NODE_WS_ENDPOINT"),
L2Endpoint: os.Getenv("L2_EXECUTION_ENGINE_WS_ENDPOINT"),
Expand Down
2 changes: 1 addition & 1 deletion prover/event_handler/transition_proved_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (s *EventHandlerTestSuite) SetupTest() {

d := new(driver.Driver)
s.Nil(d.InitFromConfig(context.Background(), &driver.Config{
SyncMode: downloader.SnapSync.String(),
SyncMode: downloader.FullSync.String(),
ClientConfig: &rpc.ClientConfig{
L1Endpoint: os.Getenv("L1_NODE_WS_ENDPOINT"),
L2Endpoint: os.Getenv("L2_EXECUTION_ENGINE_WS_ENDPOINT"),
Expand Down
2 changes: 1 addition & 1 deletion prover/prover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (s *ProverTestSuite) SetupTest() {

d := new(driver.Driver)
s.Nil(d.InitFromConfig(context.Background(), &driver.Config{
SyncMode: downloader.SnapSync.String(),
SyncMode: downloader.FullSync.String(),
ClientConfig: &rpc.ClientConfig{
L1Endpoint: os.Getenv("L1_NODE_WS_ENDPOINT"),
L2Endpoint: os.Getenv("L2_EXECUTION_ENGINE_WS_ENDPOINT"),
Expand Down

0 comments on commit 3c71af5

Please sign in to comment.