diff --git a/jsoncmd_test.go b/jsoncmd_test.go index 41ed52a9..0e7d9c63 100644 --- a/jsoncmd_test.go +++ b/jsoncmd_test.go @@ -276,20 +276,11 @@ var jsoncmdtests = []struct { }, }, { - name: "basic ping", + name: "basic getbestblockhash", f: func() (Cmd, error) { - return NewPingCmd(float64(1)) + return NewGetBestBlockHashCmd(float64(1)) }, - result: &PingCmd{ - id: float64(1), - }, - }, - { - name: "basic getblockcount", - f: func() (Cmd, error) { - return NewGetBlockCountCmd(float64(1)) - }, - result: &GetBlockCountCmd{ + result: &GetBestBlockHashCmd{ id: float64(1), }, }, @@ -304,6 +295,24 @@ var jsoncmdtests = []struct { Hash: "somehash", }, }, + { + name: "basic getblockcount", + f: func() (Cmd, error) { + return NewGetBlockCountCmd(float64(1)) + }, + result: &GetBlockCountCmd{ + id: float64(1), + }, + }, + { + name: "basic ping", + f: func() (Cmd, error) { + return NewPingCmd(float64(1)) + }, + result: &PingCmd{ + id: float64(1), + }, + }, } func TestCmds(t *testing.T) {