Skip to content

Commit 58c8ca3

Browse files
committed
update e2e test generator
1 parent 39f2d25 commit 58c8ca3

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

rollup/tests/integration_tool/imports.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ func importBatch(ctx context.Context, db *gorm.DB, chks []*orm.Chunk, encChks []
185185
Blocks: blks,
186186
}
187187

188-
dbBatch, err := batchOrm.InsertBatch(ctx, batch, codecCfg, utils.BatchMetrics{})
188+
dbBatch, err := batchOrm.InsertBatch(ctx, batch, codecCfg, utils.BatchMetrics{
189+
ValidiumMode: cfg.ValidiumMode,
190+
})
189191
if err != nil {
190192
return nil, err
191193
}

rollup/tests/integration_tool/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ func parseThreeIntegers(value string) (int, int, int, error) {
8686

8787
// load a comptabile type of config for rollup
8888
type config struct {
89-
DBConfig *database.Config `json:"db_config"`
89+
DBConfig *database.Config `json:"db_config"`
90+
ValidiumMode bool `json:"validium_mode"`
9091
}
9192

9293
func init() {

tests/prover-e2e/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.PHONY: clean setup_db test_tool all check_vars
22

33
GOOSE_CMD?=goose
4-
4+
BEGIN_BLOCK?=20
5+
END_BLOCK?=30
56

67
all: setup_db test_tool import_data
78

tests/prover-e2e/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"dsn": "postgres://dev:dev@localhost:5432/scroll?sslmode=disable",
55
"maxOpenNum": 5,
66
"maxIdleNum": 1
7-
}
7+
},
8+
"validium_mode": true
89
}

0 commit comments

Comments
 (0)