---
title: expect package
description: The expect package includes functions to mark any expectations for a testcase to be satisfied before the testcase finishes running.
url: https://docs.influxdata.com/flux/v0/stdlib/testing/expect/
estimated_tokens: 117
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/stdlib/testing/expect/
date: '2023-09-12T23:33:31-06:00'
lastmod: '2023-09-12T23:33:31-06:00'
---

* Flux 0.14.0+

InfluxDB support

The `expect` package includes functions to mark
any expectations for a testcase to be satisfied
before the testcase finishes running.
Import the `testing/expect` package:

```js
import "testing/expect"
```

These functions are intended to be called at the
beginning of a testcase, but it doesn’t really
matter when they get invoked within the testcase.

## Functions

* [expect.planner()](/flux/v0/stdlib/testing/expect/planner/)
