From 63444cef49f50d466ee447c9a184196ccef867b8 Mon Sep 17 00:00:00 2001 From: Henry Tsai Date: Tue, 9 Jul 2024 19:04:49 -0700 Subject: [PATCH] minor fixes --- tests/common-scenario-validator.ts | 2 +- tests/scenarios/web5-connect.spec.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/common-scenario-validator.ts b/tests/common-scenario-validator.ts index 46050b4..4d755b2 100644 --- a/tests/common-scenario-validator.ts +++ b/tests/common-scenario-validator.ts @@ -9,10 +9,10 @@ import fetch from 'node-fetch'; import { createJsonRpcRequest } from '../src/lib/json-rpc.js'; import { getFileAsReadStream } from './utils.js'; import { v4 as uuidv4 } from 'uuid'; +import { webcrypto } from 'node:crypto'; import { Cid, DwnConstant, Jws, ProtocolsConfigure, RecordsRead, RecordsWrite, TestDataGenerator } from '@tbd54566975/dwn-sdk-js'; - // node.js 18 and earlier needs globalThis.crypto polyfill if (!globalThis.crypto) { // @ts-ignore diff --git a/tests/scenarios/web5-connect.spec.ts b/tests/scenarios/web5-connect.spec.ts index 6199048..969c5ab 100644 --- a/tests/scenarios/web5-connect.spec.ts +++ b/tests/scenarios/web5-connect.spec.ts @@ -27,6 +27,7 @@ describe('Web5 Connect scenarios', function () { // and dwn-server.spec.ts already uses LevelDB. dwnServerConfig.messageStore = 'sqlite://', dwnServerConfig.dataStore = 'sqlite://', + dwnServerConfig.resumableTaskStore = 'sqlite://', dwnServerConfig.eventLog = 'sqlite://', dwnServer = new DwnServer({ config: dwnServerConfig });