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

ICRAR / daliuge / 2319
81%

Build:
DEFAULT BRANCH: master
Ran 03 Jun 2022 02:13AM UTC
Jobs 3
Files 140
Run time 4min
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

pending completion
2319

push

travis-ci-com

rtobar
Simplify wait_until function and friends

The previous version of these functions worked, but I found its design
was a bit over-complicated. I believe this also led to using it
incorrectly, with some calls doing a "double wait_until" invocation,
where an outer wait_until call in the test code used as a condition a
function that itself used wait_until.

This commit re-designs the wait_until function and its callers. The
first difference in this new version is that the timeout and interval
values always use their default values (although they can still be set
by on each invocation), as in the previous version all invocations
passed the same value explicitly. Secondly, instead of passing an update
function and a set of arguments to call it with, we simply pass an
update function, which in the caller site is bound to local arguments
(using a lambda in our cases, but could be a functools.partial if
required). These two changes simplified the function calling convention
a bit.

Finally, I've removed the "double wait_until" instances with what I
believe is a correct replacement. While I'm not particularly sure I've
done the right thing, I still see the same test code coverage, and all
tests are still passing. This leads me to believe I did the right thing,
but I will need confirmation. As a bonus, this change reduced the test
walltime from ~110 seconds to ~< 60.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>

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

15272 of 18838 relevant lines covered (81.07%)

1.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2319.1 (NO_DLG_RUNTIME=1) 03 Jun 2022 02:13AM UTC 0
64.0
Travis Job 2319.1
2 2319.2 (NO_DLG_TRANSLATOR=1) 03 Jun 2022 02:16AM UTC 0
85.11
Travis Job 2319.2
3 2319.3 03 Jun 2022 02:17AM UTC 0
81.16
Travis Job 2319.3
Source Files on build 2319
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #2319
  • 56a60cf9 on github
  • Prev Build on master (#2314)
  • Next Build on master (#2330)
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