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

spesmilo / electrum / 6231826058969088
63%

Build:
DEFAULT BRANCH: master
Ran 14 Jun 2023 03:49PM UTC
Jobs 6
Files 76
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

pending completion
6231826058969088

push

CirrusCI

SomberNight
exchange_rate: try harder to refresh quote when cache is expiring

Previously we polled every 2.5 minutes to get the fx spot price,
and had a 10 minute cache expiry during which the latest spot price
was valid.

On Android, this often resulted in having no price available (showing
"No data" in GUI) when putting the app in the foreground after e.g.
a half-hour sleep in the background: often there would be no fx price
until the next tick, which could take 2.5 minutes. (btw in some cases
I saw the application trying to get new quotes from the network as
soon as the app was put in the foreground but it seems those happened
so fast that the network was not ready yet and DNS lookups failed)

Now we make the behaviour a bit more complex: we still fetch the price
every 2.5 mins, and the cache is still valid for 10 mins, however if
the last price is >7.5 mins old, we become more aggressive and go into
an exponential backoff, initially trying a request every few seconds.
For the Android scenario, this means there might be "No data" for fx
for a few seconds after a long sleep, however if there is a working
network, it should soon get a fresh fx spot price quote.

18194 of 30422 relevant lines covered (59.81%)

3.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6231826058969088.1 14 Jun 2023 03:49PM UTC 0
59.7
2 6231826058969088.2 14 Jun 2023 03:49PM UTC 0
59.71
3 6231826058969088.3 14 Jun 2023 03:49PM UTC 0
59.76
4 6231826058969088.4 14 Jun 2023 03:49PM UTC 0
59.73
5 6231826058969088.5 14 Jun 2023 03:49PM UTC 0
59.71
6 6231826058969088.6 14 Jun 2023 04:02PM UTC 0
59.78
Source Files on build 6231826058969088
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #62318260...
  • 09b9fb83 on github
  • Prev Build on master (#56416165...)
  • Next Build on master (#57861272...)
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