> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# stopTestCallQuality()

> Stops an in-progress testCallQuality() test early.

`stopTestCallQuality()`

<Badge color="red">{"✗"} Prebuilt</Badge> <Badge color="green">{"✓"} Custom</Badge>

Interrupts an in-progress [`testCallQuality()`](/reference/daily-js/instance-methods/test-call-quality) test. The original Promise resolves immediately with whatever data has been collected so far. Also emits [`test-completed`](/reference/daily-js/events/network-events#test-completed).

If called before data gathering has started, the result is `'aborted'` with an empty `data` object. If data has been gathered, the result reflects the collected stats up to that point.

<Note>
  There is no need to call `stopTestCallQuality()` before `join()` — the test is stopped automatically when you join.
</Note>

## Return value

Returns `void`.

## Example

```javascript theme={null}
const testResultsPromise = call.testCallQuality();

// Stop early
call.stopTestCallQuality();

const results = await testResultsPromise;
// If stopped before data gathering:
// { result: 'aborted', secondsElapsed: 0 }
//
// If stopped after data gathering:
// { result: 'good', secondsElapsed: 8, data: { ... }, id: '...' }
```

## See also

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [testCallQuality()](/reference/daily-js/instance-methods/test-call-quality)
    * [testNetworkConnectivity()](/reference/daily-js/instance-methods/test-network-connectivity)
    * [testWebsocketConnectivity()](/reference/daily-js/instance-methods/test-websocket-connectivity)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [test-completed](/reference/daily-js/events/network-events#test-completed)
  </Card>
</CardGroup>
