Skip to content

Commit

Permalink
test: fix flakey test (#1573)
Browse files Browse the repository at this point in the history
* test: fix flakey test

* copy test from v1 reporter
  • Loading branch information
straker authored May 16, 2019
1 parent 2102eca commit fb38ce7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/core/reporters/raw-env.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global helpers */
describe('reporters - raw-env', function() {
'use strict';

Expand Down Expand Up @@ -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();
});
});
Expand Down

0 comments on commit fb38ce7

Please sign in to comment.