Skip to content

Commit

Permalink
DPP-96 increase jest timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Brummos committed Dec 11, 2023
1 parent d19d846 commit 1e9ddc5
Show file tree
Hide file tree
Showing 25 changed files with 31 additions and 34 deletions.
2 changes: 1 addition & 1 deletion packages/contact-manager/__tests__/localAgent.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createObjects, getConfig } from '../../agent-config/dist'
import { DataSource } from 'typeorm'

jest.setTimeout(30000)
jest.setTimeout(60000)

import contactManagerAgentLogic from './shared/contactManagerAgentLogic'

Expand Down
2 changes: 1 addition & 1 deletion packages/contact-manager/__tests__/restAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { createObjects, getConfig } from '../../agent-config/dist'
import { IContactManager } from '../src'
import contactManagerAgentLogic from './shared/contactManagerAgentLogic'

jest.setTimeout(30000)
jest.setTimeout(60000)

const port = 3002
const basePath = '/agent'
Expand Down
2 changes: 1 addition & 1 deletion packages/event-logger/__tests__/localAgent.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DataSource } from 'typeorm'
import { createObjects, getConfig } from '../../agent-config/dist'

jest.setTimeout(30000)
jest.setTimeout(60000)

import eventLoggerAgentLogic from './shared/eventLoggerAgentLogic'

Expand Down
2 changes: 1 addition & 1 deletion packages/event-logger/__tests__/restAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { createObjects, getConfig } from '../../agent-config/dist'
import eventLoggerAgentLogic from './shared/eventLoggerAgentLogic'
import { IEventLogger } from '../src'

jest.setTimeout(30000)
jest.setTimeout(60000)

const port = 3002
const basePath = '/agent'
Expand Down
2 changes: 1 addition & 1 deletion packages/issuance-branding/__tests__/localAgent.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DataSource } from 'typeorm'
import { createObjects, getConfig } from '../../agent-config/dist'

jest.setTimeout(30000)
jest.setTimeout(60000)

import issuanceBrandingAgentLogic from './shared/issuanceBrandingAgentLogic'

Expand Down
2 changes: 1 addition & 1 deletion packages/issuance-branding/__tests__/restAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { createObjects, getConfig } from '../../agent-config/dist'
import { IIssuanceBranding } from '../src'
import issuanceBrandingAgentLogic from './shared/issuanceBrandingAgentLogic'

jest.setTimeout(30000)
jest.setTimeout(60000)

const port = 3002
const basePath = '/agent'
Expand Down
2 changes: 1 addition & 1 deletion packages/ms-request-api/__tests__/localAgent.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createObjects, getConfig } from '@sphereon/ssi-sdk.agent-config'
import msRequestApiAgentLogic from './shared/msRequestApiAgentLogic'

jest.setTimeout(30000)
jest.setTimeout(60000)

let agent: any

Expand Down
4 changes: 2 additions & 2 deletions packages/ms-request-api/__tests__/restAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { IAgent, createAgent, IAgentOptions, IDataStore, IDataStoreORM } from '@
import { AgentRestClient } from '@veramo/remote-client'
import { AgentRouter, RequestWithAgentRouter } from '@veramo/remote-server'
import { getConfig, createObjects } from '@sphereon/ssi-sdk.agent-config'
import { IMsRequestApi } from '../src/types/IMsRequestApi'
import { IMsRequestApi } from '../src'
import msRequestApiAgentLogic from './shared/msRequestApiAgentLogic'

jest.setTimeout(30000)
jest.setTimeout(60000)

const port = 3002
const basePath = '/agent'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createObjects, getConfig } from '../../agent-config/dist'

jest.setTimeout(30000)
jest.setTimeout(60000)

import issuanceRestClientAgentLogic from './shared/issuanceRestClientAgentLogic'
import nock from 'nock'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { createObjects, getConfig } from '../../agent-config/dist'
import { IOID4VCIRestClient } from '../src'
import issuanceRestClientAgentLogic from './shared/issuanceRestClientAgentLogic'

jest.setTimeout(30000)
jest.setTimeout(60000)

const port = 3002
const basePath = '/agent'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as fs from 'fs'
import { createObjects, getConfig } from '@sphereon/ssi-sdk.agent-config'
import presentationExchangeAgentLogic from './shared/presentationExchangeAgentLogic'

jest.setTimeout(30000)
jest.setTimeout(60000)

function getFile(path: string) {
return fs.readFileSync(path, 'utf-8')
Expand Down
2 changes: 1 addition & 1 deletion packages/presentation-exchange/__tests__/restAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { getDidKeyResolver } from '@veramo/did-provider-key'
import { DIDResolverPlugin } from '@veramo/did-resolver'
import presentationExchangeAgentLogic from './shared/presentationExchangeAgentLogic'

jest.setTimeout(30000)
jest.setTimeout(60000)

const port = 3002
const basePath = '/agent'
Expand Down
2 changes: 1 addition & 1 deletion packages/qr-code-generator/__tests__/localAgent.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import { createObjects, getConfig } from '@sphereon/ssi-sdk.agent-config'

jest.setTimeout(30000)
jest.setTimeout(60000)

import ssiQrCodeProviderLogic from './shared/ssiQrCodeProviderLogic'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createObjects, getConfig } from '@sphereon/ssi-sdk.agent-config'
import didAuthSiopOpAuthenticatorAgentLogic from './shared/didAuthSiopOpAuthenticatorAgentLogic'
import { PresentationSignCallback } from '@sphereon/did-auth-siop'

jest.setTimeout(30000)
jest.setTimeout(60000)

function getFile(path: string) {
return fs.readFileSync(path, 'utf-8')
Expand Down
2 changes: 1 addition & 1 deletion packages/siopv2-oid4vp-op-auth/__tests__/restAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { getUniResolver } from '@sphereon/did-uni-client'
import didAuthSiopOpAuthenticatorAgentLogic from './shared/didAuthSiopOpAuthenticatorAgentLogic'
import { PresentationSignCallback } from '@sphereon/did-auth-siop'

jest.setTimeout(30000)
jest.setTimeout(60000)

function getFile(path: string) {
return fs.readFileSync(path, 'utf-8')
Expand Down
5 changes: 2 additions & 3 deletions packages/vc-handler-ld-local/src/__tests__/localAgent.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { createObjects, getConfig } from '@sphereon/ssi-sdk.agent-config'

jest.setTimeout(30000)
jest.setTimeout(60000)

import { LdDefaultContexts } from '../ld-default-contexts'
import { SphereonEd25519Signature2018 } from '../suites/Ed25519Signature2018'
import { SphereonEd25519Signature2020 } from '../suites/Ed25519Signature2020'
import { SphereonEd25519Signature2018, SphereonEd25519Signature2020 } from '../suites'

import vcHandlerLocalAgentLogic from './shared/vcHandlerLocalAgentLogic'
import vcHandlerLocalAgentBbsLogic from './shared/vcHandlerLocalAgentBbsLogic'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { SphereonBbsBlsSignature2020, SphereonEd25519Signature2018, SphereonEd25

import vcHandlerLocalAgentLogic from './shared/vcHandlerLocalAgentLogic'

jest.setTimeout(30000)
jest.setTimeout(60000)

const port = 4002
const basePath = '/agent'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getConfig } from '@veramo/cli/build/setup'
import { createObjects } from '@veramo/cli/build/lib/objectCreator'

jest.setTimeout(30000)
jest.setTimeout(60000)

import vcApiIssuerAgentLogic from './shared/vcApiIssuerAgentLogic'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import { Server } from 'http'
import { AgentRouter, RequestWithAgentRouter } from '@veramo/remote-server'
import { getConfig } from '@veramo/cli/build/setup'
import { createObjects } from '@veramo/cli/build/lib/objectCreator'
import { IVcApiIssuerClient } from '../src'
import { VcApiIssuerClient } from '../src'
import { IVcApiIssuerClient, VcApiIssuerClient } from '../src'
import vcApiIssuerAgentLogic from './shared/vcApiIssuerAgentLogic'

jest.setTimeout(30000)
jest.setTimeout(60000)

const port = 3002
const basePath = '/agent'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getConfig } from '@veramo/cli/build/setup'
import { createObjects } from '@veramo/cli/build/lib/objectCreator'

jest.setTimeout(30000)
jest.setTimeout(60000)

import vcApiVerifierAgentLogic from './shared/vcApiVerifierAgentLogic'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ import { Server } from 'http'
import { AgentRouter, RequestWithAgentRouter } from '@veramo/remote-server'
import { getConfig } from '@veramo/cli/build/setup'
import { createObjects } from '@veramo/cli/build/lib/objectCreator'
import { IVcApiVerifierClient } from '../src/types/IVcApiVerifierClient'
import { VcApiVerifierClient } from '../src/agent/VcApiVerifierClient'
import { IVcApiVerifierClient, VcApiVerifierClient } from '../src'
import vcApiVerifierAgentLogic from './shared/vcApiVerifierAgentLogic'
import * as path from 'path'

jest.setTimeout(30000)
jest.setTimeout(60000)

const port = 30078
const basePath = '/agent'
Expand Down
2 changes: 1 addition & 1 deletion packages/wellknown-did-issuer/__tests__/localAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createObjects, getConfig } from '@sphereon/ssi-sdk.agent-config'
import { DataSource } from 'typeorm'
import wellKnownDidIssuerAgentLogic from './shared/wellKnownDidIssuerAgentLogic'

jest.setTimeout(30000)
jest.setTimeout(60000)

let agent: any
let dbConnection: Promise<DataSource>
Expand Down
4 changes: 2 additions & 2 deletions packages/wellknown-did-issuer/__tests__/restAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { AgentRestClient } from '@veramo/remote-client'
import { AgentRouter, RequestWithAgentRouter } from '@veramo/remote-server'
import { createObjects, getConfig } from '@sphereon/ssi-sdk.agent-config'

import { IWellKnownDidIssuer } from '../src/types/IWellKnownDidIssuer'
import { IWellKnownDidIssuer } from '../src'
import wellKnownDidIssuerAgentLogic from './shared/wellKnownDidIssuerAgentLogic'

jest.setTimeout(30000)
jest.setTimeout(60000)

const port = 3002
const basePath = '/agent'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createObjects, getConfig } from '@sphereon/ssi-sdk.agent-config'
import { ServiceTypesEnum } from '@sphereon/wellknown-dids-client'
import wellKnownDidVerifierAgentLogic from './shared/wellKnownDidVerifierAgentLogic'

jest.setTimeout(30000)
jest.setTimeout(60000)

let agent: any

Expand Down
4 changes: 2 additions & 2 deletions packages/wellknown-did-verifier/__tests__/restAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { AgentRestClient } from '@veramo/remote-client'
import { AgentRouter, RequestWithAgentRouter } from '@veramo/remote-server'
import { createObjects, getConfig } from '@sphereon/ssi-sdk.agent-config'

import { IWellKnownDidVerifier } from '../src/types/IWellKnownDidVerifier'
import { IWellKnownDidVerifier } from '../src'
import { ServiceTypesEnum } from '@sphereon/wellknown-dids-client'
import wellKnownDidVerifierAgentLogic from './shared/wellKnownDidVerifierAgentLogic'

jest.setTimeout(30000)
jest.setTimeout(60000)

const port = 3002
const basePath = '/agent'
Expand Down

0 comments on commit 1e9ddc5

Please sign in to comment.