good morning!!!!

Skip to content
Snippets Groups Projects
Commit 14bdcd2c authored by Taylor Gerring's avatar Taylor Gerring
Browse files

Fix arg names in tests

parent 7235e84c
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment