diff --git a/packages/runtime/test/consumption/requests.test.ts b/packages/runtime/test/consumption/requests.test.ts index d5ba68049..5a3a296e2 100644 --- a/packages/runtime/test/consumption/requests.test.ts +++ b/packages/runtime/test/consumption/requests.test.ts @@ -599,7 +599,7 @@ describe("Requests", () => { }); }); - describe.only("Request expired due to expired RelationshipTemplate", () => { + describe("Request expired due to expired RelationshipTemplate", () => { const runtimeServiceProvider = new RuntimeServiceProvider(); let sRuntimeServices: TestRuntimeServices; let rRuntimeServices: TestRuntimeServices; @@ -630,7 +630,6 @@ describe("Requests", () => { afterAll(async () => await runtimeServiceProvider.stop()); test("change status of Request when querying it if the underlying RelationshipTemplate is expired", async () => { - // const templateContent = templateContent const request = (await exchangeTemplateAndReceiverRequiresManualDecision(sRuntimeServices, rRuntimeServices, templateContent, DateTime.utc().plus({ seconds: 1 }))) .request; @@ -684,9 +683,7 @@ describe("Requests", () => { ] as TestCase[])("Cannot respond to Request of expired RelationshipTemplate: $action Request throws error", ({ action }) => { const actionLowerCase = action.toLowerCase() as "accept" | "reject"; - test.only(`recipient: cannot ${actionLowerCase} incoming Request`, async () => { - // console.log(DateTime.utc()); - // console.log(templateContent); + test(`recipient: cannot ${actionLowerCase} incoming Request`, async () => { const request = (await exchangeTemplateAndReceiverRequiresManualDecision(sRuntimeServices, rRuntimeServices, templateContent, DateTime.utc().plus({ seconds: 1 }))) .request; diff --git a/packages/runtime/test/lib/testUtilsWithInactiveModules.ts b/packages/runtime/test/lib/testUtilsWithInactiveModules.ts index 104b72581..25c7497b0 100644 --- a/packages/runtime/test/lib/testUtilsWithInactiveModules.ts +++ b/packages/runtime/test/lib/testUtilsWithInactiveModules.ts @@ -82,21 +82,16 @@ export async function exchangeTemplateAndReceiverRequiresManualDecision( templateContent: any, templateExpiresAt?: DateTime ): Promise { - console.log(templateContent); const template = await exchangeTemplate(sRuntimeServices.transport, rRuntimeServices.transport, templateContent, templateExpiresAt); - // console.log(template); const request = ( await rRuntimeServices.consumption.incomingRequests.received({ receivedRequest: (template.content as RelationshipTemplateContentJSON).onNewRelationship, requestSourceId: template.id }) ).value; - // console.log(request); - // console.log(DateTime.utc()); - const req = await rRuntimeServices.consumption.incomingRequests.checkPrerequisites({ + await rRuntimeServices.consumption.incomingRequests.checkPrerequisites({ requestId: request.id }); - // console.log(DateTime.utc()); return { request: ( await rRuntimeServices.consumption.incomingRequests.requireManualDecision({