From f5d48b0e86a3771a9aa36232c21e749aca188491 Mon Sep 17 00:00:00 2001 From: Dirk McCormick Date: Thu, 15 Oct 2020 12:47:24 +0200 Subject: [PATCH] fix: lotus-gateway api tests --- cmd/lotus-gateway/api_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-gateway/api_test.go b/cmd/lotus-gateway/api_test.go index 4946e2a26..5b8261974 100644 --- a/cmd/lotus-gateway/api_test.go +++ b/cmd/lotus-gateway/api_test.go @@ -88,7 +88,7 @@ func TestGatewayAPIChainGetTipSetByHeight(t *testing.T) { tt := tt t.Run(tt.name, func(t *testing.T) { mock := &mockGatewayDepsAPI{} - a := &GatewayAPI{api: mock} + a := NewGatewayAPI(mock) // Create tipsets from genesis up to tskh and return the highest ts := mock.createTipSets(tt.args.tskh, tt.args.genesisTS)