message: test: simulate DNS fail
diff: @@ -13,7 +13,7 @@ import { MyDomainResolver } from '../../src/status/myDomainResolver';
  import { ConfigAggregator, ConfigInfo } from '../../src/config/configAggregator';
  import { Connection, SFDX_HTTP_HEADERS } from '../../src/connection';
  -import { testSetup } from '../../src/testSetup';
  +import { testSetup, shouldThrow } from '../../src/testSetup';
  // Setup the test environment.
  const $$ = testSetup();
  @@ -49,6 +49,17 @@ describe('Connection', () => {
  .returns(Promise.resolve([{ version: '42.0' }]));
  });
  + it('create() should throw on DNS errors', async () => {
  + $$.SANDBOX.restore();
  + $$.SANDBOX.stub(MyDomainResolver.prototype, 'resolve').rejects({ name: 'Org Not Found' });
  +
  + try {
  + await shouldThrow(Connection.create({ authInfo: testAuthInfoWithDomain as AuthInfo }));
  + } catch (e) {
  + expect(e).to.have.property('name', 'Org Not Found');
  + }
  + });
  +
  it('create() should create a connection using AuthInfo and SFDX options', async () => {
  const conn = await Connection.create({ authInfo: testAuthInfo as AuthInfo });
  