test/integration: disable tests that change the go versions
The states mutated during the test break other tests.
Updates golang/vscode-go#357
Change-Id: I65e55f98cbb33926e64f3ad33be3ce5e14ddea30
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/242877
Reviewed-by: Brayden Cloud <bcloud@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
diff --git a/src/testUtils.ts b/src/testUtils.ts
index 52f9c3d..b87ef32 100644
--- a/src/testUtils.ts
+++ b/src/testUtils.ts
@@ -362,7 +362,9 @@
outputChannel.appendLine(out.trimRight());
}
} catch (e) {
+ // TODO: disable this log if it becomes too spammy.
console.log(`failed to parse JSON: ${e}: ${line}`);
+ // Build failures or other messages come in non-JSON format. So, output as they are.
outputChannel.appendLine(line);
}
};
diff --git a/test/integration/statusbar.test.ts b/test/integration/statusbar.test.ts
index 4d1534b..05a103d 100644
--- a/test/integration/statusbar.test.ts
+++ b/test/integration/statusbar.test.ts
@@ -50,8 +50,8 @@
});
});
-describe('#setSelectedGo()', function () {
- // Disabled due to https://github.com/golang/vscode-go/issues/303.
+describe.skip('#setSelectedGo()', function () {
+ // TODO: reenable this once the problem is fixed https://github.com/golang/vscode-go/issues/357
this.timeout(40000);
let sandbox: sinon.SinonSandbox | undefined;
let goOption: GoEnvironmentOption;
@@ -60,7 +60,6 @@
this.beforeAll(async () => {
defaultGoConfig = ourutil.getGoConfig();
});
-
this.beforeEach(async () => {
goOption = await getSelectedGo();
sandbox = sinon.createSandbox();
@@ -141,7 +140,8 @@
});
});
-describe('#updateGoVarsFromConfig()', function () {
+describe.skip('#updateGoVarsFromConfig()', function () {
+ // TODO: reenable this once the problem is fixed: https://github.com/golang/vscode-go/issues/357
this.timeout(10000);
let defaultGoConfig: vscode.WorkspaceConfiguration | undefined;