Skip to content

Commit cbecbf8

Browse files
committed
test/integration/goExplorer: fix 'env tree items' test
use path.join for file path For #832 Change-Id: I03817df9ee3cbdff6b5d537377112548a6055d1b Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/418779 TryBot-Result: kokoro <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
1 parent e91d0e8 commit cbecbf8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/integration/goExplorer.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { getConfiguredTools } from '../../src/goTools';
1313
import { getGoVersion } from '../../src/util';
1414
import { resolveHomeDir } from '../../src/utils/pathUtils';
1515
import { MockExtensionContext } from '../mocks/MockContext';
16-
import { affectedByIssue832 } from './testutils';
1716

1817
suite('GoExplorerProvider', () => {
1918
const fixtureDir = path.join(__dirname, '../../../test/testdata/baseTest');
@@ -37,15 +36,12 @@ suite('GoExplorerProvider', () => {
3736
assert.strictEqual(env.contextValue, 'go:explorer:envtree');
3837
});
3938

40-
test('env tree items', async function () {
41-
if (affectedByIssue832()) {
42-
this.skip();
43-
}
39+
test('env tree items', async () => {
4440
const [env] = await explorer.getChildren()!;
4541
const [goenv, gomod] = (await explorer.getChildren(env)) as { key: string; value: string }[];
4642
assert.strictEqual(goenv.key, 'GOENV');
4743
assert.strictEqual(gomod.key, 'GOMOD');
48-
assert.strictEqual(resolveHomeDir(gomod.value), `${fixtureDir}/go.mod`);
44+
assert.strictEqual(resolveHomeDir(gomod.value), path.join(fixtureDir, 'go.mod'));
4945
});
5046

5147
test('tools tree', async () => {

0 commit comments

Comments
 (0)