From f419f2f28d664fad6d6e16cf89a6ebbd7d0f0052 Mon Sep 17 00:00:00 2001 From: Joachim Van Herwegen Date: Thu, 20 Jul 2023 15:36:44 +0200 Subject: [PATCH] test: Enable file locker in notification tests --- test/integration/WebHookChannel2023.test.ts | 4 +--- test/integration/WebSocketChannel2023.test.ts | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/test/integration/WebHookChannel2023.test.ts b/test/integration/WebHookChannel2023.test.ts index 641a998ec..3a78d128a 100644 --- a/test/integration/WebHookChannel2023.test.ts +++ b/test/integration/WebHookChannel2023.test.ts @@ -5,7 +5,6 @@ import { createRemoteJWKSet, jwtVerify } from 'jose'; import type { NamedNode } from 'n3'; import { DataFactory, Parser, Store } from 'n3'; import type { App } from '../../src/init/App'; - import { matchesAuthorizationScheme } from '../../src/util/HeaderUtil'; import { joinUrl, trimTrailingSlashes } from '../../src/util/PathUtil'; import { readJsonStream } from '../../src/util/StreamUtil'; @@ -36,8 +35,7 @@ const stores: [string, any][] = [ teardown: jest.fn(), }], [ 'on-disk storage', { - // Switch to file locker after https://github.com/CommunitySolidServer/CommunitySolidServer/issues/1452 - configs: [ 'storage/backend/file.json', 'util/resource-locker/memory.json' ], + configs: [ 'storage/backend/file.json', 'util/resource-locker/file.json' ], teardown: async(): Promise => removeFolder(rootFilePath), }], ]; diff --git a/test/integration/WebSocketChannel2023.test.ts b/test/integration/WebSocketChannel2023.test.ts index 249f31e92..768ef4513 100644 --- a/test/integration/WebSocketChannel2023.test.ts +++ b/test/integration/WebSocketChannel2023.test.ts @@ -30,8 +30,7 @@ const stores: [string, any][] = [ teardown: jest.fn(), }], [ 'on-disk storage', { - // Switch to file locker after https://github.com/CommunitySolidServer/CommunitySolidServer/issues/1452 - configs: [ 'storage/backend/file.json', 'util/resource-locker/memory.json' ], + configs: [ 'storage/backend/file.json', 'util/resource-locker/file.json' ], teardown: async(): Promise => removeFolder(rootFilePath), }], ];