Cian Johnston
01fe5e668e
chore: add testutil.Eventually and friends (#3389)
This PR adds a `testutil` function aimed to replace `require.Eventually`.
Before:
```go
require.Eventually(t, func() bool { ... }, testutil.WaitShort, testutil.IntervalFast)
```
After:
```go
require.True(t, testutil.EventuallyShort(t, func(ctx context.Context) bool { ... }))
// or the full incantation if you need more control
ctx, cancel := context.WithTimeout(ctx.Background(), testutil.WaitLong)
require.True(t, testutil.Eventually(t, ctx, func(ctx context.Context) bool { ... }, testutil.IntervalSlow))
```
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
2022-08-05 16:34:44 +01:00
..
2022-08-01 09:29:52 -04:00
2022-07-27 20:26:13 +03:00
2022-03-28 19:31:03 +00:00
2022-04-19 13:48:13 +00:00
2022-08-05 16:34:44 +01:00
2022-08-01 16:53:05 -05:00
2022-08-01 15:45:05 +03:00
2022-04-06 00:18:26 +00:00
2022-07-31 23:05:35 -05:00
2022-08-01 15:45:05 +03:00
2022-07-18 19:39:24 +03:00
2022-08-01 09:29:52 -04:00
2022-07-31 23:05:35 -05:00
2022-05-20 10:51:06 -05:00
2022-04-19 11:14:55 -05:00
2022-05-27 17:29:55 +00:00
2022-06-25 06:22:59 -05:00
2022-07-25 19:22:02 +03:00
2022-06-24 10:25:01 -05:00
2022-08-01 15:45:05 +03:00
2022-07-31 23:05:35 -05:00
2022-07-12 19:15:02 -05:00
2022-06-14 10:14:05 -05:00
2022-07-12 19:15:02 -05:00
2022-06-27 13:50:52 -05:00
2022-07-12 19:15:02 -05:00
2022-07-12 19:15:02 -05:00
2022-06-14 10:14:05 -05:00
2022-07-12 19:15:02 -05:00
2022-06-26 20:23:25 +00:00
2022-07-12 19:15:02 -05:00
2022-06-03 21:48:09 +00:00
2022-07-12 19:15:02 -05:00
2022-08-01 15:45:05 +03:00
2022-08-01 16:53:05 -05:00
2022-08-01 15:45:05 +03:00
2022-07-25 19:22:02 +03:00
2022-08-01 16:53:05 -05:00
2022-06-03 21:48:09 +00:00
2022-07-12 19:15:02 -05:00
2022-07-12 12:52:28 -05:00
2022-07-15 14:12:39 -07:00
2022-08-01 15:45:05 +03:00
2022-07-15 14:12:39 -07:00
2022-07-31 23:05:35 -05:00
2022-07-31 23:05:35 -05:00
2022-06-29 11:59:38 -05:00
2022-07-12 19:15:02 -05:00
2022-07-12 19:15:02 -05:00
2022-07-25 19:22:02 +03:00
2022-07-19 13:24:06 -05:00
2022-07-11 13:46:01 -05:00
2022-07-12 19:15:02 -05:00
2022-08-01 15:45:05 +03:00
2022-08-01 16:53:05 -05:00
2022-05-19 17:47:45 -05:00
2022-07-12 19:15:02 -05:00
2022-08-01 16:53:05 -05:00
2022-08-01 16:53:05 -05:00
2022-06-29 11:59:38 -05:00
2022-07-29 15:01:17 +01:00
2022-08-02 13:19:00 -04:00