• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

masterzen / winrm
83%
master: 81%

Build:
Build:
LAST BUILD BRANCH: bugfix/77-fix-race-condition
DEFAULT BRANCH: master
Repo Added 25 Nov 2014 08:50AM UTC
Files 15
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH bugfix/77-fix-race-condition
branch: bugfix/77-fix-race-condition
CHANGE BRANCH
x
Reset
  • bugfix/77-fix-race-condition
  • feature/49-split-lib-and-tool
  • feature/add-version-system
  • fix/49-add-request-timeout
  • fix/60-use-azure-fork
  • fix/go1.4-travis
  • increase-test-coverage
  • master
  • pecigonzalo-timeout-fix

pending completion
161

push

travis-ci

masterzen
Fix #77 - fix RunWithString race condition

This doesn't happen with Go < 1.10, but there was a race condition in
`RunWithString` and `RunWithInput` which had already been fixed in `Run`.
It was possible for the function to return while the `stdout` or `stderr`
copy was still in progress. Since `bytes.Buffer` is not thread safe, the
`outwriter.String()` could see an intermediate buffer state while it
was growing, leading to strange results.

27 of 27 new or added lines in 1 file covered. (100.0%)

734 of 888 relevant lines covered (82.66%)

52.47 hits per line

Relevant lines Covered
Build:
Build:
888 RELEVANT LINES 734 COVERED LINES
52.47 HITS PER LINE
Source Files on bugfix/77-fix-race-condition
  • List 0
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
161 bugfix/77-fix-race-condition Fix #77 - fix RunWithString race condition This doesn't happen with Go < 1.10, but there was a race condition in `RunWithString` and `RunWithInput` which had already been fixed in `Run`. It was possible for the function to return while the `stdou... push 24 Feb 2018 03:57PM UTC masterzen travis-ci pending completion  
159 bugfix/77-fix-race-condition Fix #77 - fix RunWithString race condition This doesn't happen with Go < 1.10, but there was a race condition in `RunWithString` and `RunWithInput` which had already been fixed in `Run`. It was possible for the function to return while the `stdou... push 24 Feb 2018 03:55PM UTC masterzen travis-ci pending completion  
See All Builds (79)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc