Skip to content

Commit

Permalink
Fix azdata network test failure (microsoft#12670)
Browse files Browse the repository at this point in the history
* Fix azdata network test failure

* Add comment
  • Loading branch information
Charles-Gagnon authored Sep 30, 2020
1 parent b8de69d commit 3c4df53
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions extensions/azdata/src/test/azdata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import * as utils from '../common/utils';
import * as loc from '../localizedConstants';

const oldAzdataMock = new azdata.AzdataTool('/path/to/azdata', '0.0.0');

/**
* This matches the schema of the JSON file used to determine the current version of
* azdata - do not modify unless also updating the corresponding JSON file
*/
const releaseJson = {
win32: {
'version': '9999.999.999',
Expand Down Expand Up @@ -136,9 +141,8 @@ describe('azdata', function () {
});

describe('discoverLatestAvailableAzdataVersion', function (): void {
this.timeout(20000);
it(`finds latest available version of azdata successfully`, async function (): Promise<void> {
// if the latest version is not discovered then the following call throws failing the test
it('finds latest available version of azdata successfully', async function (): Promise<void> {
sinon.stub(HttpClient, 'getTextContent').resolves(JSON.stringify(releaseJson));
await azdata.discoverLatestAvailableAzdataVersion();
});
});
Expand Down

0 comments on commit 3c4df53

Please sign in to comment.