<p></p>
<blockquote>
<p dir="auto">Well if I knew what the problem was then I would have done so!</p>
</blockquote>
<p dir="auto">Reading between the lines, I guess there's some problem in production then? Like long-running queries not being timed out properly?</p>
<blockquote>
<p dir="auto">you can't just make a query go slowly</p>
</blockquote>
<p dir="auto">I'd look into stubbing out the query, perhaps with Minitest::Mock, so that you can control precisely how long the 'query' takes to run in the test suite. That could be enough to fire the timeouts and check that the exceptions are being handled. Of course, there's probably some complexity about what part exactly to mock in order to trigger the problem that you are seeing.</p>
<p dir="auto">If it's something that needs super-in-depth debugging to isolate the problem, then we need to figure out how to write the tests to either prevent it from cropping up again in production in future, or to isolate whatever is making it flakey and report it upstream!</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/commit/24f579562fbaf1ec9138014b0f2ed8e219eb75f7#commitcomment-138120916">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKN6YOSM26UZ6G46ATYRJHLTAVCNFSM6AAAAABCS3KPFKVHI2DSMVQWIX3LMV43OQ3PNVWWS5CDN5WW2ZLOOQ5TCMZYGEZDAOJRGY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJF4LL7PIF6QOZ5BYTYRJHLTA5CNFSM6AAAAABCS3KPFKWGG33NNVSW45C7OR4XAZNNINXW23LJORBW63LNMVXHJKTDN5WW2ZLOORPWSZGOBA5Y5VA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/commit/24f579562fbaf1ec9138014b0f2ed8e219eb75f7/138120916</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/commit/24f579562fbaf1ec9138014b0f2ed8e219eb75f7#commitcomment-138120916",
"url": "https://github.com/openstreetmap/openstreetmap-website/commit/24f579562fbaf1ec9138014b0f2ed8e219eb75f7#commitcomment-138120916",
"name": "View Commit"
},
"description": "View this Commit on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>