message: Deflake a diagnostics test.
diff: @@ -186,8 +186,18 @@ suite('DiagnosticGenerator', function() {
  ['unknown-superclass']);
  });
  - test('can be configured to filter out some files', async() => {
  + test('can be configured to filter out some files', async function() {
  const {client} = await createTestEnvironment();
  +
  + // First we create a linter with no config. Then we finish trying to load
  + // polymer.json and create another linter. Both times we report empty
  + // set of diagnostics for polymer.json
  + assert.deepEqual(await client.getNextDiagnostics('polymer.json'), []);
  + assert.deepEqual(await client.getNextDiagnostics('polymer.json'), []);
  +
  + // Now we can be confident we won't be getting unexpected additional
  + // diagnostics from recreating the linter.
  +
  await client.openFile('index.html', `
  <link rel="import" href="nonexistant.html">
  <script>
  @@ -205,6 +215,8 @@ suite('DiagnosticGenerator', function() {
  assert.deepEqual(
  (await client.getNextDiagnostics('index.html')).map(d => d.code), []);
  + });
  +
  test('sends diagnostics around polymer.json validation', async() => {
  const {client, baseDir} = await createTestEnvironment();
  // once on boot up
  @@ -233,7 +245,7 @@ suite('DiagnosticGenerator', function() {
  assert.match(
  messages[0], /Invalid polymer\.json file.*not of.*type.*array/);
  });
  - });
  +
  // TODO(rictic): add tests for analyzeWholePackage here
  // TODO(rictic): add tests for code actions here
  // TODO(rictic): add tests for fix on save here
  