|
8 | 8 | import { expect } from 'chai'; |
9 | 9 | import * as typeMoq from 'typemoq'; |
10 | 10 | import { WorkspaceConfiguration } from 'vscode'; |
11 | | -import { LanguageServerPackageService } from '../../client/activation/languageServerPackageService'; |
| 11 | +import { LanguageServerPackageStorageContainers } from '../../client/activation/languageServerPackageRepository'; |
| 12 | +import { DefaultLanguageServerDownloadChannel, LanguageServerPackageService } from '../../client/activation/languageServerPackageService'; |
12 | 13 | import { IHttpClient } from '../../client/activation/types'; |
13 | 14 | import { IWorkspaceService } from '../../client/common/application/types'; |
14 | 15 | import { HttpClient } from '../../client/common/net/httpClient'; |
@@ -68,10 +69,10 @@ suite('Language Server Package Service', () => { |
68 | 69 | serviceContainer.setup(c => c.get(typeMoq.It.isValue(INugetService))).returns(() => nugetService); |
69 | 70 | const platformService = new PlatformService(); |
70 | 71 | serviceContainer.setup(c => c.get(typeMoq.It.isValue(IPlatformService))).returns(() => platformService); |
71 | | - const nugetRepo = new AzureBlobStoreNugetRepository(serviceContainer.object, 'https://pvsc.blob.core.windows.net', 'vscode-python-ls-production'); |
| 72 | + const defaultStorageChannel = LanguageServerPackageStorageContainers[DefaultLanguageServerDownloadChannel]; |
| 73 | + const nugetRepo = new AzureBlobStoreNugetRepository(serviceContainer.object, 'https://pvsc.blob.core.windows.net', defaultStorageChannel); |
72 | 74 | serviceContainer.setup(c => c.get(typeMoq.It.isValue(INugetRepository))).returns(() => nugetRepo); |
73 | 75 | const lsPackageService = new LanguageServerPackageService(serviceContainer.object); |
74 | | - |
75 | 76 | const packageName = lsPackageService.getNugetPackageName(); |
76 | 77 | const packages = await nugetRepo.getPackages(packageName); |
77 | 78 |
|
|
0 commit comments