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

zalando / postgres-operator / 2465
44%

Build:
DEFAULT BRANCH: master
Ran 18 Feb 2020 03:50PM UTC
Jobs 1
Files 9
Run time 2s
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

18 Feb 2020 03:45PM UTC coverage: 22.686%. Remained the same
2465

push

travis-ci

web-flow
Fix test flakiness on TestSameService (#833)

The code added on #818 depends on map sorting to return a static reason
for service annotation changes. To avoid tests flakiness and map sorting
the tests include a `strings.HasPrefix` instead of comparing the whole
string. One of the test cases,
`service_removes_a_custom_annotation,_adds_a_new_one_and_change_another`,
is trying to test the whole reason string.

This commit replaces the test case reason, for only the reason prefix.
It removes the flakiness from the tests. As all the cases (annotation
adding, removing and value changing) are tested before, it's safe to
test only prefixes.

Also, it renames the test name from `TestServiceAnnotations` to
`TestSameService` and introduces a better description in case of test
failure, describing that only prefixes are tested.

277 of 1221 relevant lines covered (22.69%)

1.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2465.1 18 Feb 2020 03:50PM UTC 0
22.69
Travis Job 2465.1
Source Files on build 2465
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2465
  • 4b440e59 on github
  • Prev Build on master (#2454)
  • Next Build on master (#2469)
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

© 2026 Coveralls, Inc