mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
p2p/simulations: consistent naming for test providers Node.UnmarshalJSON
This commit is contained in:
parent
83ed2baa63
commit
7d6bc331e2
1 changed files with 3 additions and 3 deletions
|
|
@ -497,7 +497,7 @@ func TestNode_UnmarshalJSON(t *testing.T) {
|
||||||
t.Run(
|
t.Run(
|
||||||
"test unmarshal of Node Config field",
|
"test unmarshal of Node Config field",
|
||||||
func(t *testing.T) {
|
func(t *testing.T) {
|
||||||
runNodeUnmarshalJSON(t, casesNodeUnmarshalJSONConfig())
|
runNodeUnmarshalJSON(t, casesNodeUnmarshalJSONConfigField())
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -590,12 +590,12 @@ func casesNodeUnmarshalJSONUpField() []nodeUnmarshalTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func casesNodeUnmarshalJSONConfig() []nodeUnmarshalTestCase {
|
func casesNodeUnmarshalJSONConfigField() []nodeUnmarshalTestCase {
|
||||||
// Don't do a big fuss around testing, as adapters.NodeConfig should
|
// Don't do a big fuss around testing, as adapters.NodeConfig should
|
||||||
// handle it's own serialization. Just do a sanity check.
|
// handle it's own serialization. Just do a sanity check.
|
||||||
return []nodeUnmarshalTestCase{
|
return []nodeUnmarshalTestCase{
|
||||||
{
|
{
|
||||||
name: "missing Config field",
|
name: "Config field is omitted",
|
||||||
marshaled: "{}",
|
marshaled: "{}",
|
||||||
want: Node{
|
want: Node{
|
||||||
Config: nil,
|
Config: nil,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue