mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fix azdata network test failure (#12670)
* Fix azdata network test failure * Add comment
This commit is contained in:
@@ -13,6 +13,11 @@ import * as utils from '../common/utils';
|
|||||||
import * as loc from '../localizedConstants';
|
import * as loc from '../localizedConstants';
|
||||||
|
|
||||||
const oldAzdataMock = new azdata.AzdataTool('/path/to/azdata', '0.0.0');
|
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 = {
|
const releaseJson = {
|
||||||
win32: {
|
win32: {
|
||||||
'version': '9999.999.999',
|
'version': '9999.999.999',
|
||||||
@@ -136,9 +141,8 @@ describe('azdata', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('discoverLatestAvailableAzdataVersion', function (): void {
|
describe('discoverLatestAvailableAzdataVersion', function (): void {
|
||||||
this.timeout(20000);
|
it('finds latest available version of azdata successfully', async function (): Promise<void> {
|
||||||
it(`finds latest available version of azdata successfully`, async function (): Promise<void> {
|
sinon.stub(HttpClient, 'getTextContent').resolves(JSON.stringify(releaseJson));
|
||||||
// if the latest version is not discovered then the following call throws failing the test
|
|
||||||
await azdata.discoverLatestAvailableAzdataVersion();
|
await azdata.discoverLatestAvailableAzdataVersion();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user