diff --git a/src/testUtils.ts b/src/testUtils.ts index 8842969b4..c73410361 100644 --- a/src/testUtils.ts +++ b/src/testUtils.ts @@ -256,7 +256,7 @@ export function goTest(testconfig: TestConfig): Thenable { 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); }