Skip to content

Commit f91a8c3

Browse files
committed
🐛 fix tests
1 parent 55df452 commit f91a8c3

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/test/.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@
2222
"python.linting.pylamaEnabled": false,
2323
"python.linting.mypyEnabled": false,
2424
"python.formatting.provider": "yapf",
25-
"python.pythonPath": "python",
2625
"python.linting.pylintUseMinimalCheckers": false
2726
}

src/test/linters/lint.multiroot.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ suite('Multiroot Linting', () => {
3636

3737
function initializeDI() {
3838
ioc = new UnitTestIocContainer();
39-
ioc.registerCommonTypes();
39+
ioc.registerCommonTypes(false);
4040
ioc.registerProcessTypes();
4141
ioc.registerLinterTypes();
4242
ioc.registerVariableTypes();

src/test/linters/lint.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ suite('Linting', () => {
114114

115115
function initializeDI() {
116116
ioc = new UnitTestIocContainer();
117-
ioc.registerCommonTypes();
117+
ioc.registerCommonTypes(false);
118118
ioc.registerProcessTypes();
119119
ioc.registerLinterTypes();
120120
ioc.registerVariableTypes();

src/test/serviceRegistry.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ export class IocContainer {
6565
this.disposables.forEach(disposable => disposable.dispose());
6666
}
6767

68-
public registerCommonTypes() {
68+
public registerCommonTypes(registerFileSystem: boolean = true) {
6969
commonRegisterTypes(this.serviceManager);
70-
this.registerFileSystemTypes();
70+
if (registerFileSystem) {
71+
this.registerFileSystemTypes();
72+
}
7173
}
7274
public registerFileSystemTypes() {
7375
this.serviceManager.addSingleton<IPlatformService>(IPlatformService, PlatformService);

0 commit comments

Comments
 (0)