Skip to content

Commit 0951732

Browse files
committed
Fix tests
1 parent 88e638e commit 0951732

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/unitTests/OmnisharpDownloader.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import MockHttpsServer from "./testAssets/MockHttpsServer";
1414
import {expect} from 'chai';
1515
import TestZip from "./testAssets/TestZip";
1616
import { createTestFile } from "./testAssets/TestFile";
17-
import { PackageInstallation, LogPlatformInfo, DownloadStart, DownloadSizeObtained, DownloadProgress, DownloadSuccess, InstallationStart, InstallationSuccess } from "../../src/omnisharp/loggingEvents";
17+
import { PackageInstallation, LogPlatformInfo, DownloadStart, DownloadSizeObtained, DownloadProgress, DownloadSuccess, InstallationStart, InstallationSuccess, PackageInstallStart } from "../../src/omnisharp/loggingEvents";
1818
import TestEventBus from "./testAssets/TestEventBus";
1919
import { testPackageJSON } from "./testAssets/testAssets";
2020

@@ -62,6 +62,7 @@ suite('OmnisharpDownloader', () => {
6262
let expectedSequence = [
6363
new PackageInstallation('OmniSharp Version = 1.2.3'),
6464
new LogPlatformInfo(new PlatformInformation("win32", "x86")),
65+
new PackageInstallStart(),
6566
new DownloadStart('OmniSharp for Windows (.NET 4.6 / x86), Version = 1.2.3'),
6667
new DownloadSizeObtained(testZip.size),
6768
new DownloadProgress(100, 'OmniSharp for Windows (.NET 4.6 / x86), Version = 1.2.3'),

test/unitTests/Packages/PackageManager.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { DownloadAndInstallPackages } from '../../../src/packageManager/PackageM
1313
import NetworkSettings from '../../../src/NetworkSettings';
1414
import { PlatformInformation } from '../../../src/platform';
1515
import { EventStream } from '../../../src/EventStream';
16-
import { DownloadStart, DownloadSizeObtained, DownloadProgress, DownloadSuccess, InstallationStart } from '../../../src/omnisharp/loggingEvents';
16+
import { DownloadStart, DownloadSizeObtained, DownloadProgress, DownloadSuccess, InstallationStart, PackageInstallStart } from '../../../src/omnisharp/loggingEvents';
1717
import MockHttpsServer from '../testAssets/MockHttpsServer';
1818
import { createTestFile } from '../testAssets/TestFile';
1919
import TestEventBus from '../testAssets/TestEventBus';
@@ -70,6 +70,7 @@ suite("Package Manager", () => {
7070

7171
test("Events are created in the correct order", async () => {
7272
let eventsSequence = [
73+
new PackageInstallStart(),
7374
new DownloadStart(packageDescription),
7475
new DownloadSizeObtained(testZip.size),
7576
new DownloadProgress(100, packageDescription),

0 commit comments

Comments
 (0)