Skip to content

Commit

Permalink
test: fix outputing message when test finishes
Browse files Browse the repository at this point in the history
This has regressed after the refactor. Because I had this enabled

```
let g:go_echo_command_info = 0
```

I was not able to see it.

fixes #1324
  • Loading branch information
fatih committed Jun 8, 2017
1 parent fec6321 commit 21cfbbc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions autoload/go/test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,18 @@ function s:test_job(args) abort
let status.state = "failed"
endif

if get(g:, 'go_echo_command_info', 1)
if a:exitval == 0
if a:args.compile_test
call go#util#EchoSuccess("SUCCESS")
else
call go#util#EchoSuccess("PASS")
endif
else
call go#util#EchoError("FAILED")
endif
endif

let elapsed_time = reltimestr(reltime(started_at))
" strip whitespace
let elapsed_time = substitute(elapsed_time, '^\s*\(.\{-}\)\s*$', '\1', '')
Expand Down

0 comments on commit 21cfbbc

Please sign in to comment.