> ## 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.

# abortTestNetworkConnectivity()

> Stop an in-progress testNetworkConnectivity() test early.

`abortTestNetworkConnectivity()`

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

Stops an in-progress [`testNetworkConnectivity()`](/reference/daily-js/instance-methods/test-network-connectivity) test before it completes. The original `testNetworkConnectivity()` Promise resolves immediately with `{ result: 'aborted' }`, and a [`test-completed`](/reference/daily-js/events/network-events#test-completed) event fires with the same result.

If no test is in progress, this method does nothing.

## Return value

`void`

## Example

```javascript theme={null}
const videoTrack = call.participants().local.tracks.video.persistentTrack;

// Start the test
const resultPromise = call.testNetworkConnectivity(videoTrack);

// Abort early if the user cancels
call.abortTestNetworkConnectivity();

const { result } = await resultPromise;
console.log(result); // 'aborted'
```

## See also

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

  <Card title="Guides" icon="book-open" iconType="solid">
    * [Network quality](/docs/daily-js/guides/network-quality)
  </Card>
</CardGroup>
