diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-26 17:58:02 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:19 +0800 |
commit | a0adfadd8aa2f471a76dd35622b49bb83e67bf6c (patch) | |
tree | 5b459e29327ab521ff4c1fbcd54500431a2a0456 /dex/handler_test.go | |
parent | 5791965d8af0b1d8d30ae7232879d063cb5cd8f0 (diff) | |
download | go-tangerine-a0adfadd8aa2f471a76dd35622b49bb83e67bf6c.tar.gz go-tangerine-a0adfadd8aa2f471a76dd35622b49bb83e67bf6c.tar.zst go-tangerine-a0adfadd8aa2f471a76dd35622b49bb83e67bf6c.zip |
dex: fix tests
Diffstat (limited to 'dex/handler_test.go')
-rw-r--r-- | dex/handler_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
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) |