From 7d6bc331e2a247e9d3f2e0a5989b28481f2b20ea Mon Sep 17 00:00:00 2001 From: Ferenc Szabo Date: Thu, 31 Jan 2019 13:13:58 +0100 Subject: [PATCH] p2p/simulations: consistent naming for test providers Node.UnmarshalJSON --- p2p/simulations/network_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2p/simulations/network_test.go b/p2p/simulations/network_test.go index 700e0cfa54..8b644ffb0f 100644 --- a/p2p/simulations/network_test.go +++ b/p2p/simulations/network_test.go @@ -497,7 +497,7 @@ func TestNode_UnmarshalJSON(t *testing.T) { t.Run( "test unmarshal of Node Config field", 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 // handle it's own serialization. Just do a sanity check. return []nodeUnmarshalTestCase{ { - name: "missing Config field", + name: "Config field is omitted", marshaled: "{}", want: Node{ Config: nil,