From 2ab6387dd89aaca481b3f3d5abfba61b6ceebad3 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Fri, 21 May 2021 00:03:26 +0200 Subject: [PATCH] Revert "pull in test from #11278" This reverts commit e5bd74f3e52ceb1c000c58dc07f98c1308c85923. --- e2e/__tests__/detectOpenHandles.ts | 11 ----------- e2e/detect-open-handles/__tests__/crypto.js | 13 ------------- 2 files changed, 24 deletions(-) delete mode 100644 e2e/detect-open-handles/__tests__/crypto.js 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); -});