cmd/geth: make tests run quicker + use less memory and disk (#21919)

This commit is contained in:
Martin Holst Swende
2020-11-30 14:43:20 +01:00
committed by GitHub
parent 566cb4c5f0
commit aba0c234c2
5 changed files with 71 additions and 89 deletions

View File

@ -84,7 +84,7 @@ func TestCustomGenesis(t *testing.T) {
runGeth(t, "--nousb", "--datadir", datadir, "init", json).WaitExit()
// Query the custom genesis block
geth := runGeth(t, "--nousb",
geth := runGeth(t, "--nousb", "--networkid", "1337", "--syncmode=full",
"--datadir", datadir, "--maxpeers", "0", "--port", "0",
"--nodiscover", "--nat", "none", "--ipcdisable",
"--exec", tt.query, "console")