Skip to content

Commit

Permalink
chore: generate testIds on CIs only (#4817)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov authored Aug 7, 2019
1 parent 656fe46 commit c047624
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ const utils = module.exports = {
// Generate testIDs for all tests and verify they don't clash.
// This will add |test.testId| for every test.
//
// NOTE: we do this unconditionally so that developers can see problems in
// their local setups.
generateTestIDs(testRunner);
// NOTE: we do this on CI's so that problems arise on PR trybots.
if (process.env.CI)
generateTestIDs(testRunner);
// FLAKINESS_DASHBOARD_PASSWORD is an encrypted/secured variable.
// Encrypted variables get a special treatment in CI's when handling PRs so that
// secrets are not leaked to untrusted code.
Expand Down

0 comments on commit c047624

Please sign in to comment.