Fix perf dashboard tests for node v8
[WebKit.git] / Websites / perf.webkit.org / unit-tests / measurement-set-tests.js
index dd28a07ed438d9d568997ed76cf02f6779453f2f..1b2fab1aa5f8281c58d4bdcc38a539e553f8e7a9 100644 (file)
@@ -18,11 +18,7 @@ describe('MeasurementSet', () => {
 
     function waitForMeasurementSet()
     {
-        return Promise.resolve().then(() => {
-            return Promise.resolve();
-        }).then(() => {
-            return Promise.resolve();
-        });
+        return new Promise((resolve) => setTimeout(resolve, 0));
     }
 
     describe('findSet', () => {