From 26718da993570527afa8c03a9d3285b891331b79 Mon Sep 17 00:00:00 2001 From: Rafael Oleza Date: Thu, 2 Nov 2017 05:56:49 -0700 Subject: [PATCH] Fix flacky Server-test in metro Reviewed By: mjesun Differential Revision: D6220171 fbshipit-source-id: 603671db9a6345dd039c443eb14593e3631c7a88 --- packages/metro-bundler/src/Server/__tests__/Server-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/metro-bundler/src/Server/__tests__/Server-test.js b/packages/metro-bundler/src/Server/__tests__/Server-test.js index 33050bd9..9e96c6a9 100644 --- a/packages/metro-bundler/src/Server/__tests__/Server-test.js +++ b/packages/metro-bundler/src/Server/__tests__/Server-test.js @@ -27,14 +27,13 @@ jest .mock('../../lib/GlobalTransformCache') .mock('../../DeltaBundler/Serializers'); -const DeltaBundler = require('../../DeltaBundler'); - describe('processRequest', () => { let Bundler; let Server; let AssetServer; let symbolicate; let Serializers; + let DeltaBundler; const lastModified = new Date(); beforeEach(() => { @@ -45,6 +44,7 @@ describe('processRequest', () => { AssetServer = require('../../AssetServer'); symbolicate = require('../symbolicate'); Serializers = require('../../DeltaBundler/Serializers'); + DeltaBundler = require('../../DeltaBundler'); }); let server;