Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Revert "Case of tests and code not being in same package #2044"
Browse files Browse the repository at this point in the history
As it doesnt really fix the bug
This reverts commit 262da19.
  • Loading branch information
ramya-rao-a committed Nov 1, 2018
1 parent acba4d7 commit 7cfc71a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export function goTest(testconfig: TestConfig): Thenable<boolean> {
const result = line.match(packageResultLineRE);
if (result && (pkgMap.has(result[2]) || currentGoWorkspace)) {
const packageNameArr = result[2].split('/');
const baseDir = currentGoWorkspace ? path.join(currentGoWorkspace, ...packageNameArr) : pkgMap.get(result[2]);
const baseDir = pkgMap.get(result[2]) || path.join(currentGoWorkspace, ...packageNameArr);
testResultLines.forEach(line => outputChannel.appendLine(expandFilePathInOutput(line, baseDir)));
testResultLines.splice(0);
}
Expand Down

0 comments on commit 7cfc71a

Please sign in to comment.