From ae024ba2a875f4be9101cae1f0058b84e8eac4fb Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 26 Feb 2025 15:16:43 +0100 Subject: [PATCH] cmd/workload: add missing flags --- cmd/workload/historytestgen.go | 5 +++-- cmd/workload/testsuite.go | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/workload/historytestgen.go b/cmd/workload/historytestgen.go index 4887f1a405..9d98bb28e6 100644 --- a/cmd/workload/historytestgen.go +++ b/cmd/workload/historytestgen.go @@ -39,6 +39,7 @@ var ( Action: generateHistoryTests, Flags: []cli.Flag{ historyTestFileFlag, + historyTestEarliestFlag, }, } @@ -48,7 +49,7 @@ var ( Value: "history_tests.json", Category: flags.TestingCategory, } - historyTestEarliesFlag = &cli.IntFlag{ + historyTestEarliestFlag = &cli.IntFlag{ Name: "earliest", Usage: "JSON file containing filter test queries", Value: 0, @@ -61,7 +62,7 @@ const historyTestBlockCount = 2000 func generateHistoryTests(clictx *cli.Context) error { var ( client = makeClient(clictx) - earliest = uint64(clictx.Int(historyTestEarliesFlag.Name)) + earliest = uint64(clictx.Int(historyTestEarliestFlag.Name)) outputFile = clictx.String(historyTestFileFlag.Name) ctx = context.Background() ) diff --git a/cmd/workload/testsuite.go b/cmd/workload/testsuite.go index 699a707c4a..3e3ea1d001 100644 --- a/cmd/workload/testsuite.go +++ b/cmd/workload/testsuite.go @@ -44,6 +44,7 @@ var ( testSepoliaFlag, testMainnetFlag, filterQueryFileFlag, + historyTestFileFlag, }, } testPatternFlag = &cli.StringFlag{