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

Commit

Permalink
Adding logs to debug test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Oct 24, 2016
1 parent 8d64d74 commit 3ac4060
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ language: go

go:
- 1.5
- 1.6
- 1.7


sudo: false

os:
- osx
- linux

before_install:
Expand Down
1 change: 1 addition & 0 deletions src/goInstallTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export function getGoVersion(): Promise<SemVersion> {
}
return new Promise<SemVersion>((resolve, reject) => {
cp.execFile(goRuntimePath, ['version'], {}, (err, stdout, stderr) => {
console.log(`Go Version output is: ${stdout}`);
let matches = /go version go(\d).(\d).*/.exec(stdout);
if (matches) {
goVersion = {
Expand Down
1 change: 1 addition & 0 deletions test/go.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ encountered.

test('Test Generate unit tests squeleton for file', (done) => {
getGoVersion().then(version => {
console.log(`Major: ${version.major} Minor: ${version.minor}`);
if (version.major === 1 && version.minor === 5) {
// gotests is not supported in Go 1.5, so skip the test
return Promise.resolve();
Expand Down

0 comments on commit 3ac4060

Please sign in to comment.