From a0adfadd8aa2f471a76dd35622b49bb83e67bf6c Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Mon, 26 Nov 2018 17:58:02 +0800 Subject: dex: fix tests --- dex/handler_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dex/handler_test.go') diff --git a/dex/handler_test.go b/dex/handler_test.go index dc1ea1d73..c9e99abc9 100644 --- a/dex/handler_test.go +++ b/dex/handler_test.go @@ -198,9 +198,10 @@ func testGetBlockHeaders(t *testing.T, protocol int) { // Run each of the tests and verify the results against the chain for i, tt := range tests { // Collect the headers to expect in the response - headers := []*types.Header{} + headers := []*types.HeaderWithGovState{} for _, hash := range tt.expect { - headers = append(headers, pm.blockchain.GetBlockByHash(hash).Header()) + headers = append(headers, &types.HeaderWithGovState{ + Header: pm.blockchain.GetBlockByHash(hash).Header()}) } // Send the hash request and verify the response p2p.Send(peer.app, 0x03, tt.query) -- cgit