From fb38ce76b7acaeaa180773b4eaf23c2cacb6ac27 Mon Sep 17 00:00:00 2001 From: Steven Lambert Date: Thu, 16 May 2019 08:59:15 -0600 Subject: [PATCH] test: fix flakey test (#1573) * test: fix flakey test * copy test from v1 reporter --- test/core/reporters/raw-env.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/core/reporters/raw-env.js b/test/core/reporters/raw-env.js index cd25550046..47a761ac10 100644 --- a/test/core/reporters/raw-env.js +++ b/test/core/reporters/raw-env.js @@ -1,4 +1,3 @@ -/*global helpers */ describe('reporters - raw-env', function() { 'use strict'; @@ -133,9 +132,12 @@ describe('reporters - raw-env', function() { if (err) { return done(err); } - var env = helpers.getEnvironmentData(); assert.deepEqual(results.raw, rawResults); - assert.deepEqual(results.env, env); + assert.isNotNull(results.env); + assert.isNotNull(results.env.url); + assert.isNotNull(results.env.timestamp); + assert.isNotNull(results.env.testEnvironement); + assert.isNotNull(results.env.testRunner); done(); }); });