aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args_test.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-13 00:50:03 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-13 00:50:03 +0800
commit14bdcd2c052214ca78c7cb163771c780e2fd1291 (patch)
tree3e7490c8f2e228c1056221b9119e7ad40c148931 /rpc/args_test.go
parent7235e84c75bf216f435384cb100e2b3dd9979227 (diff)
downloaddexon-14bdcd2c052214ca78c7cb163771c780e2fd1291.tar.gz
dexon-14bdcd2c052214ca78c7cb163771c780e2fd1291.tar.zst
dexon-14bdcd2c052214ca78c7cb163771c780e2fd1291.zip
Fix arg names in tests
Diffstat (limited to 'rpc/args_test.go')
-rw-r--r--rpc/args_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/args_test.go b/rpc/args_test.go
index 6b6d3c3c0..47d79cc32 100644
--- a/rpc/args_test.go
+++ b/rpc/args_test.go
@@ -477,7 +477,7 @@ func TestBlockNumIndexArgs(t *testing.T) {
func TestHashIndexArgs(t *testing.T) {
input := `["0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b", "0x1"]`
expected := new(HashIndexArgs)
- expected.BlockHash = "0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b"
+ expected.Hash = "0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b"
expected.Index = 1
args := new(HashIndexArgs)
@@ -485,8 +485,8 @@ func TestHashIndexArgs(t *testing.T) {
t.Error(err)
}
- if expected.BlockHash != args.BlockHash {
- t.Errorf("BlockHash shoud be %#v but is %#v", expected.BlockHash, args.BlockHash)
+ if expected.Hash != args.Hash {
+ t.Errorf("Hash shoud be %#v but is %#v", expected.Hash, args.Hash)
}
if expected.Index != args.Index {