mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
updated tests, and removed requiredblocks from json and hcl
This commit is contained in:
parent
d2eb2df62e
commit
7c6f0a67e6
4 changed files with 1 additions and 11 deletions
|
|
@ -24,7 +24,7 @@ func TestFlags(t *testing.T) {
|
|||
"--dev.period", "2",
|
||||
"--datadir", "./data",
|
||||
"--maxpeers", "30",
|
||||
"--requiredblocks", "a=b",
|
||||
"--eth.requiredblocks", "a=b",
|
||||
"--http.api", "eth,web3,bor",
|
||||
}
|
||||
err := c.extractFlags(args)
|
||||
|
|
|
|||
|
|
@ -108,9 +108,6 @@ func TestConfigLoadFile(t *testing.T) {
|
|||
|
||||
assert.Equal(t, config, &Config{
|
||||
DataDir: "./data",
|
||||
RequiredBlocks: map[string]string{
|
||||
"a": "b",
|
||||
},
|
||||
P2P: &P2PConfig{
|
||||
MaxPeers: 30,
|
||||
},
|
||||
|
|
|
|||
4
internal/cli/server/testdata/test.hcl
vendored
4
internal/cli/server/testdata/test.hcl
vendored
|
|
@ -1,9 +1,5 @@
|
|||
datadir = "./data"
|
||||
|
||||
requiredblocks = {
|
||||
a = "b"
|
||||
}
|
||||
|
||||
p2p {
|
||||
maxpeers = 30
|
||||
}
|
||||
|
|
|
|||
3
internal/cli/server/testdata/test.json
vendored
3
internal/cli/server/testdata/test.json
vendored
|
|
@ -1,8 +1,5 @@
|
|||
{
|
||||
"datadir": "./data",
|
||||
"requiredblocks": {
|
||||
"a": "b"
|
||||
},
|
||||
"p2p": {
|
||||
"maxpeers": 30
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue