Skip to content

Commit

Permalink
fix env one more
Browse files Browse the repository at this point in the history
  • Loading branch information
0xverin committed Oct 31, 2024
1 parent 4d46264 commit 0e17e9e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
3 changes: 0 additions & 3 deletions vc-di-tests/integration-tests/.env.local.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
NODE_ENV=local
PARACHAIN_ENDPOINT=ws://127.0.0.1:9944
ENCLAVE_ENDPOINT=ws://127.0.0.1:2000


TWITTER_AUTH_TOKEN_V2=''
DISCORD_AUTH_TOKEN=''
Expand Down
2 changes: 0 additions & 2 deletions vc-di-tests/integration-tests/.env.staging
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
NODE_ENV=staging
PARACHAIN_ENDPOINT=ws://127.0.0.1:9944
ENCLAVE_ENDPOINT=ws://127.0.0.1:2000
6 changes: 4 additions & 2 deletions vc-di-tests/integration-tests/assertion_contracts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,11 @@ describe('Test Vc (direct request)', function () {
}
}
before(async () => {
console.log(`env.PARACHAIN_ENDPOINT: ${env.PARACHAIN_ENDPOINT}`)
console.log(`env.ENCLAVE_ENDPOINT: ${env.ENCLAVE_ENDPOINT}`)
context = await initIntegrationTestContext(
process.env.PARACHAIN_ENDPOINT!,
process.env.ENCLAVE_ENDPOINT!
env.PARACHAIN_ENDPOINT!,
env.ENCLAVE_ENDPOINT!
)

teeShieldingKey = await getTeeShieldingKey(context)
Expand Down
2 changes: 2 additions & 0 deletions vc-di-tests/integration-tests/common/loadEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const envSchema = z.object({
GENIIDATA_API_KEY: z.string(),
MORALIS_API_KEY: z.string(),
MAGIC_CRAFT_API_KEY: z.string(),
PARACHAIN_ENDPOINT: z.string().optional().default('ws://127.0.0.1:9944'),
ENCLAVE_ENDPOINT: z.string().optional().default('ws://127.0.0.1:2000'),
})

export type EnvConfig = z.infer<typeof envSchema>
Expand Down
1 change: 0 additions & 1 deletion vc-di-tests/integration-tests/common/utils/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export async function initIntegrationTestContext(
const workerEndpoint = enclaveEndpoint
? enclaveEndpoint
: await getenclaveEndpoint(api)
console.log(`workerEndpoint: ${workerEndpoint}`)
const wsp = await initWorkerConnection(workerEndpoint)
const requestId = 1

Expand Down

0 comments on commit 0e17e9e

Please sign in to comment.