From c9d5c64f98c1f1fe7950de60c58edeaf3ace070d Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 27 Aug 2018 13:28:49 +0200 Subject: replace fs by fs-extra to prevent EMFILE error --- server/tests/utils/users/accounts.ts | 2 +- server/tests/utils/videos/videos.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tests') diff --git a/server/tests/utils/users/accounts.ts b/server/tests/utils/users/accounts.ts index 30b3c54f8..024a315c7 100644 --- a/server/tests/utils/users/accounts.ts +++ b/server/tests/utils/users/accounts.ts @@ -1,7 +1,7 @@ /* tslint:disable:no-unused-expression */ import { expect } from 'chai' -import { existsSync } from 'fs' +import { existsSync } from 'fs-extra' import { join } from 'path' import { Account } from '../../../../shared/models/actors' import { readdirPromise } from '../../../helpers/core-utils' diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts index 674a92df9..973bbbe87 100644 --- a/server/tests/utils/videos/videos.ts +++ b/server/tests/utils/videos/videos.ts @@ -1,7 +1,7 @@ /* tslint:disable:no-unused-expression */ import { expect } from 'chai' -import { existsSync, readFile } from 'fs' +import { existsSync, readFile } from 'fs-extra' import * as parseTorrent from 'parse-torrent' import { extname, join } from 'path' import * as request from 'supertest' -- cgit v1.2.3