b-size:4"><code class="language-scala" data-lang="scala">given customTimeout as <span style="color:#a6e22e">TestTimeout</span> <span style="color:#66d9ef">=</span> <span style="color:#a6e22e">TestTimeout</span><span style="color:#f92672">(</span><span style="color:#ae81ff">500.</span>millis<span style="color:#f92672">)</span>
expect<span style="color:#f92672">(</span>someFuture<span style="color:#f92672">).</span>toCompleteWith<span style="color:#f92672">(</span><span style="color:#e6db74">&#34;fast&#34;</s