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

Commit

Permalink
Case of tests and code not being in same package #2044
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Oct 31, 2018
1 parent e57d888 commit 262da19
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 = pkgMap.get(result[2]) || path.join(currentGoWorkspace, ...packageNameArr);
const baseDir = currentGoWorkspace ? path.join(currentGoWorkspace, ...packageNameArr) : pkgMap.get(result[2]);
testResultLines.forEach(line => outputChannel.appendLine(expandFilePathInOutput(line, baseDir)));
testResultLines.splice(0);
}
Expand Down

0 comments on commit 262da19

Please sign in to comment.