mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
updated GENESIS_TEST.GO
This commit is contained in:
parent
bd58746a7e
commit
deb0903922
1 changed files with 4 additions and 4 deletions
|
|
@ -84,7 +84,7 @@ var customGenesisTests = []struct {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tests that initializing Geth with a custom genesis block and chain definitions
|
// Tests that initializing XDC with a custom genesis block and chain definitions
|
||||||
// work properly.
|
// work properly.
|
||||||
func TestCustomGenesis(t *testing.T) {
|
func TestCustomGenesis(t *testing.T) {
|
||||||
for i, tt := range customGenesisTests {
|
for i, tt := range customGenesisTests {
|
||||||
|
|
@ -100,11 +100,11 @@ func TestCustomGenesis(t *testing.T) {
|
||||||
runGeth(t, "--datadir", datadir, "init", json).WaitExit()
|
runGeth(t, "--datadir", datadir, "init", json).WaitExit()
|
||||||
|
|
||||||
// Query the custom genesis block
|
// Query the custom genesis block
|
||||||
geth := runGeth(t,
|
XDC := runGeth(t,
|
||||||
"--datadir", datadir, "--maxpeers", "0", "--port", "0",
|
"--datadir", datadir, "--maxpeers", "0", "--port", "0",
|
||||||
"--nodiscover", "--nat", "none", "--ipcdisable",
|
"--nodiscover", "--nat", "none", "--ipcdisable",
|
||||||
"--exec", tt.query, "console")
|
"--exec", tt.query, "console")
|
||||||
geth.ExpectRegexp(tt.result)
|
XDC.ExpectRegexp(tt.result)
|
||||||
geth.ExpectExit()
|
XDC.ExpectExit()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue