From 56fa2a3b17624fc58b6710890e5059656601892d Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Tue, 23 Aug 2022 21:43:45 +0300 Subject: [PATCH] update delay and compute time --- test/integration/ComputeFlow.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/ComputeFlow.test.ts b/test/integration/ComputeFlow.test.ts index f907ee51..f59b4390 100644 --- a/test/integration/ComputeFlow.test.ts +++ b/test/integration/ComputeFlow.test.ts @@ -438,13 +438,14 @@ describe('Simple compute tests', async () => { it('should fetch compute environments from provider', async () => { // get compute environments computeEnvs = await ProviderInstance.getComputeEnvironments(providerUrl) + console.log('compute envs', computeEnvs) assert(computeEnvs, 'No Compute environments found') }) it('should start a computeJob using the free environment', async () => { - // let's have 5 minutes of compute access + // let's have 2 minutes of compute access const mytime = new Date() - const computeMinutes = 5 + const computeMinutes = 2 mytime.setMinutes(mytime.getMinutes() + computeMinutes) computeValidUntil = Math.floor(mytime.getTime() / 1000) console.log('compute valid until ==', computeValidUntil) @@ -572,7 +573,7 @@ describe('Simple compute tests', async () => { assert(computeJobs, 'Cannot start compute job') }) - delay(120000) + delay(100000) it('Check compute status', async () => { const jobStatus = (await ProviderInstance.computeStatus( @@ -593,7 +594,6 @@ describe('Simple compute tests', async () => { freeComputeJobId, 0 ) - console.log('downloadURL', downloadURL) assert(downloadURL, 'Provider getComputeResultUrl failed!') })