maxcnunes / waitforit

Wait until an address become available.
MIT License
173 stars 26 forks source link

Provide ability to expect specific status #22

Closed killmenot closed 6 years ago

killmenot commented 6 years ago

Hi @maxcnunes

Could you please merge this PR?. It that provides an ability to expect address to return specific status code. Also I updated Installing with a Dockerfile section in README because when I tried it for the first time I found that address is not supported and only then I found that I use 1.3.1 but latest was 2.2.0

status is a new optional parameter that accept http status code. When status is set, the tool waits this status code to exit successfully

coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 45


Changes Missing Coverage Covered Lines Changed/Added Lines %
main.go 0 2 0.0%
<!-- Total: 13 15 86.67% -->
Totals Coverage Status
Change from base Build 44: 0.4%
Covered Lines: 111
Relevant Lines: 184

💛 - Coveralls
maxcnunes commented 6 years ago

Nice, that is a good idea.