Update MockGateway with Ping method
@@ -38,6 +38,7 @@ type MockGateway struct {
GetCollectionMock func(id flow.Identifier) (*flow.Collection, error)
GetBlockByHeightMock func(uint64) (*flow.Block, error)
GetBlockByIDMock func(flow.Identifier) (*flow.Block, error)
+ PingMock func() error
}
func NewMockGateway() gateway.Gateway {
@@ -83,3 +84,7 @@ func (g *MockGateway) GetEvents(name string, start uint64, end uint64) ([]client
func (g *MockGateway) GetCollection(id flow.Identifier) (*flow.Collection, error) {
return g.GetCollectionMock(id)
}
+
+func (g *MockGateway) Ping() error {
+ return nil
+}
