# Badge shows build error when all tests pass except for the allowed failures

**URL:** <https://travis-ci.community/t/badge-shows-build-error-when-all-tests-pass-except-for-the-allowed-failures/3988>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [July 1, 2019, 4:36pm UTC](https://travis-ci.community/t/badge-shows-build-error-when-all-tests-pass-except-for-the-allowed-failures/3988 "2019-07-01T16:36:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thinkingserious](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/thinkingserious/32/2136_2.png) [@thinkingserious](https://travis-ci.community/u/thinkingserious)\
**Post date:** [July 1, 2019, 4:36pm UTC](https://travis-ci.community/t/badge-shows-build-error-when-all-tests-pass-except-for-the-allowed-failures/3988/1 "2019-07-01T16:36:38Z")

</div>

Here is the build in question: [https://travis-ci.org/twilio/twilio-java](https://travis-ci.org/twilio/twilio-java)

Thanks!

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [July 1, 2019, 5:26pm UTC](https://travis-ci.community/t/badge-shows-build-error-when-all-tests-pass-except-for-the-allowed-failures/3988/2 "2019-07-01T17:26:14Z")

</div>

The latest build on the default branch (`master`) is [https://travis-ci.org/twilio/twilio-java/builds/551028306](https://travis-ci.org/twilio/twilio-java/builds/551028306), which has indeed errored. So the badge status is correct.

The “current” shows [https://travis-ci.org/twilio/twilio-java/builds/552346751](https://travis-ci.org/twilio/twilio-java/builds/552346751), but it’s a PR build and it has no bearing on the badge.

[https://docs.travis-ci.com/user/status-images/#travis-ci-pages-show-the-default-branchs-result](https://docs.travis-ci.com/user/status-images/#travis-ci-pages-show-the-default-branchs-result)
