fix: lotus-gateway api tests

This commit is contained in:
Dirk McCormick 2020-10-15 12:47:24 +02:00
parent f74852bd73
commit f5d48b0e86

View File

@ -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)