v1.22.0
Onsi Fakhouri
1 year, 6 months ago
0 | |
## v1.21.1
|
|
0 |
## 1.22.0
|
|
1 |
|
|
2 |
### Features
|
|
3 |
|
|
4 |
Several improvements have been made to `Eventually` and `Consistently` in this and the most recent releases:
|
|
5 |
|
|
6 |
- Eventually and Consistently can take a context.Context [65c01bc]
|
|
7 |
This enables integration with Ginkgo 2.3.0's interruptible nodes and node timeouts.
|
|
8 |
- Eventually and Consistently that are passed a SpecContext can provide reports when an interrupt occurs [0d063c9]
|
|
9 |
- Eventually/Consistently will forward an attached context to functions that ask for one [e2091c5]
|
|
10 |
- Eventually/Consistently supports passing arguments to functions via WithArguments() [a2dc7c3]
|
|
11 |
- Eventually and Consistently can now be stopped early with StopTrying(message) and StopTrying(message).Now() [52976bb]
|
|
12 |
|
|
13 |
These improvements are all documented in [Gomega's docs](https://onsi.github.io/gomega/#making-asynchronous-assertions)
|
|
14 |
|
|
15 |
## Fixes
|
|
16 |
|
|
17 |
## Maintenance
|
|
18 |
|
|
19 |
## 1.21.1
|
1 | 20 |
|
2 | 21 |
### Features
|
3 | 22 |
- Eventually and Consistently that are passed a SpecContext can provide reports when an interrupt occurs [0d063c9]
|
21 | 21 |
"github.com/onsi/gomega/types"
|
22 | 22 |
)
|
23 | 23 |
|
24 | |
const GOMEGA_VERSION = "1.21.1"
|
|
24 |
const GOMEGA_VERSION = "1.22.0"
|
25 | 25 |
|
26 | 26 |
const nilGomegaPanic = `You are trying to make an assertion, but haven't registered Gomega's fail handler.
|
27 | 27 |
If you're using Ginkgo then you probably forgot to put your assertion in an It().
|