From 14a0c5dcc3f48ec722b5c3a9041a35370755a982 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Tue, 17 Mar 2020 13:41:49 +0200 Subject: [PATCH] remove unused code --- test/integration/ocean/Compute.test.ts | 2 +- .../utils/ddo-metadata-generator.ts | 27 ------------------- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/test/integration/ocean/Compute.test.ts b/test/integration/ocean/Compute.test.ts index 9111381..88f0d9f 100644 --- a/test/integration/ocean/Compute.test.ts +++ b/test/integration/ocean/Compute.test.ts @@ -10,7 +10,7 @@ import { Config, MetaDataAlgorithm } from '../../../src' -import { getMetadata, createComputeService } from '../utils' +import { getMetadata } from '../utils' import { ServiceCompute } from '../../../src/ddo/Service' const metadataAsset = getMetadata() diff --git a/test/integration/utils/ddo-metadata-generator.ts b/test/integration/utils/ddo-metadata-generator.ts index d79a4dd..a809ef1 100644 --- a/test/integration/utils/ddo-metadata-generator.ts +++ b/test/integration/utils/ddo-metadata-generator.ts @@ -78,30 +78,3 @@ export const generateMetadata = ( export const getMetadata = (price?: number, type?: 'dataset' | 'algorithm') => generateMetadata('TestAsset', type, price) -export const createComputeService = async ( - ocean: Ocean, - publisher: Account, - price: string, - datePublished: string -): Promise => { - const { templates } = ocean.keeper - const serviceAgreementTemplate = await templates.escrowComputeExecutionTemplate.getServiceAgreementTemplate() - - const name = 'dataAssetComputingServiceAgreement' - return { - type: 'compute', - index: 3, - serviceEndpoint: ocean.brizo.getComputeEndpoint(), - templateId: templates.escrowComputeExecutionTemplate.getId(), - attributes: { - main: { - creator: publisher.getId(), - datePublished, - price, - timeout: 3600, - name - }, - serviceAgreementTemplate - } - } -}