diff --git a/e2e/__tests__/detectOpenHandles.ts b/e2e/__tests__/detectOpenHandles.ts index 810c5761507b..3cd9396f9b26 100644 --- a/e2e/__tests__/detectOpenHandles.ts +++ b/e2e/__tests__/detectOpenHandles.ts @@ -167,14 +167,3 @@ it('does not print info about open handlers for a server that is already closed' expect(wrap(textAfterTest)).toMatchSnapshot(); }); - -it('does not report crypto random data', () => { - // The test here is basically that it exits cleanly without reporting anything (does not need `until`) - const {stderr} = runJest('detect-open-handles', [ - 'crypto', - '--detectOpenHandles', - ]); - const textAfterTest = getTextAfterTest(stderr); - - expect(textAfterTest).toBe(''); -}); diff --git a/e2e/detect-open-handles/__tests__/crypto.js b/e2e/detect-open-handles/__tests__/crypto.js deleted file mode 100644 index 1a4284994d8e..000000000000 --- a/e2e/detect-open-handles/__tests__/crypto.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -const {randomFillSync} = require('crypto'); - -test('randomFillSync()', () => { - const buf = Buffer.alloc(10); - randomFillSync(buf); -});