MCPcopy Create free account
hub / github.com/subquery/subql / retryConnection

Method retryConnection

packages/node-core/src/api.service.spec.ts:12–21  ·  view source on GitHub ↗
(
    createConnection: (endpoint: string, config: IEndpointConfig) => Promise<IApiConnectionSpecific>,
    network: ProjectNetworkConfig & {chainId: string},
    index: number,
    endpoint: string,
    config: IEndpointConfig,
    postConnectedHook?: (connection: IApiConnectionSpecific, endpoint: string, index: number) => void
  )

Source from the content-addressed store, hash-verified

10
11class TestApiService extends ApiService {
12 retryConnection(
13 createConnection: (endpoint: string, config: IEndpointConfig) => Promise<IApiConnectionSpecific>,
14 network: ProjectNetworkConfig & {chainId: string},
15 index: number,
16 endpoint: string,
17 config: IEndpointConfig,
18 postConnectedHook?: (connection: IApiConnectionSpecific, endpoint: string, index: number) => void
19 ): void {
20 /* No Op to avoid creating intervals/timeouts in tests*/
21 }
22}
23
24describe('ApiService', () => {

Callers 1

createConnectionsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected