Skip to content

Commit

Permalink
fix #114031
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Feb 24, 2021
1 parent faccfff commit 213757c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vs/platform/storage/test/browser/storageService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { IEnvironmentService } from 'vs/platform/environment/common/environment'
suite('StorageService (browser)', function () {

const disposables = new DisposableStore();
let storageService: BrowserStorageService;

createSuite<BrowserStorageService>({
setup: async () => {
Expand All @@ -28,13 +29,14 @@ suite('StorageService (browser)', function () {
const userDataProvider = disposables.add(new InMemoryFileSystemProvider());
disposables.add(fileService.registerProvider(Schemas.userData, userDataProvider));

const storageService = disposables.add(new BrowserStorageService({ id: String(Date.now()) }, { userRoamingDataHome: URI.file('/User').with({ scheme: Schemas.userData }) } as unknown as IEnvironmentService, fileService));
storageService = disposables.add(new BrowserStorageService({ id: String(Date.now()) }, { userRoamingDataHome: URI.file('/User').with({ scheme: Schemas.userData }) } as unknown as IEnvironmentService, fileService));

await storageService.initialize();

return storageService;
},
teardown: async storage => {
await storageService.flush();
disposables.clear();
}
});
Expand Down

0 comments on commit 213757c

Please sign in to comment.