# wait\_for\_test\_session

<pre class="language-python"><code class="lang-python">dbnl.experimental.wait_for_test_session(
    *,
    test_session: TestSession
    timeout_s: int = 180,
) -> <a data-footnote-ref href="#user-content-fn-1">TestSession</a>:
</code></pre>

## Parameters

<table><thead><tr><th width="307">Arguments</th><th>Description</th></tr></thead><tbody><tr><td><code>test_session</code></td><td>The dbnl <a href="../sdk-objects/testsession">TestSession</a> to wait for completion.</td></tr><tr><td><code>timeout_s</code></td><td>An optional timeout (in seconds) parameter for waiting for the TestSession to complete. An exception will be raised if  the TestSession did not complete before <code>timeout_s</code> has elapsed.</td></tr></tbody></table>

## Returns

<table><thead><tr><th width="202">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>TestSession</code></td><td>The completed TestSession</td></tr></tbody></table>

## Example

[^1]: [TestSession](https://docs.dbnl.com/v0.20.x/using-distributional/python-sdk/sdk-objects/testsession)
