Skip to content

Commit 4a6ad25

Browse files
authored
fix flow test --fork flag default (#2165)
1 parent 3306758 commit 4a6ad25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/test/test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ flow test test1.cdc test2.cdc`,
102102
func init() {
103103
// Add default value to --fork flag
104104
// workaround because config schema via struct tags doesn't support default values
105-
TestCommand.Cmd.Flags().StringVar(&testFlags.Fork, "fork", "mainnet", "Fork tests from a remote network. If provided without a value, defaults to mainnet")
105+
TestCommand.Cmd.Flags().StringVar(&testFlags.Fork, "fork", "", "Fork tests from a remote network. If provided without a value, defaults to mainnet")
106106
if f := TestCommand.Cmd.Flags().Lookup("fork"); f != nil {
107107
f.NoOptDefVal = "mainnet"
108108
}

0 commit comments

Comments
 (0)