test: Enable file locker in notification tests

This commit is contained in:
Joachim Van Herwegen 2023-07-20 15:36:44 +02:00
parent d0e01472b9
commit f419f2f28d
2 changed files with 2 additions and 5 deletions

View File

@ -5,7 +5,6 @@ import { createRemoteJWKSet, jwtVerify } from 'jose';
import type { NamedNode } from 'n3'; import type { NamedNode } from 'n3';
import { DataFactory, Parser, Store } from 'n3'; import { DataFactory, Parser, Store } from 'n3';
import type { App } from '../../src/init/App'; import type { App } from '../../src/init/App';
import { matchesAuthorizationScheme } from '../../src/util/HeaderUtil'; import { matchesAuthorizationScheme } from '../../src/util/HeaderUtil';
import { joinUrl, trimTrailingSlashes } from '../../src/util/PathUtil'; import { joinUrl, trimTrailingSlashes } from '../../src/util/PathUtil';
import { readJsonStream } from '../../src/util/StreamUtil'; import { readJsonStream } from '../../src/util/StreamUtil';
@ -36,8 +35,7 @@ const stores: [string, any][] = [
teardown: jest.fn(), teardown: jest.fn(),
}], }],
[ 'on-disk storage', { [ 'on-disk storage', {
// Switch to file locker after https://github.com/CommunitySolidServer/CommunitySolidServer/issues/1452 configs: [ 'storage/backend/file.json', 'util/resource-locker/file.json' ],
configs: [ 'storage/backend/file.json', 'util/resource-locker/memory.json' ],
teardown: async(): Promise<void> => removeFolder(rootFilePath), teardown: async(): Promise<void> => removeFolder(rootFilePath),
}], }],
]; ];

View File

@ -30,8 +30,7 @@ const stores: [string, any][] = [
teardown: jest.fn(), teardown: jest.fn(),
}], }],
[ 'on-disk storage', { [ 'on-disk storage', {
// Switch to file locker after https://github.com/CommunitySolidServer/CommunitySolidServer/issues/1452 configs: [ 'storage/backend/file.json', 'util/resource-locker/file.json' ],
configs: [ 'storage/backend/file.json', 'util/resource-locker/memory.json' ],
teardown: async(): Promise<void> => removeFolder(rootFilePath), teardown: async(): Promise<void> => removeFolder(rootFilePath),
}], }],
]; ];