Skip to content

Commit 19c1e8e

Browse files
committed
changelog: document test_helpers API changes
1 parent 2f40eaa commit 19c1e8e

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
3434
* New `MockDoer` interface for custom `Doer` testing with builder pattern
3535
methods: `AddResponse`, `AddResponseRaw`, `AddResponseError`, `Requests`.
3636
* New `MockRequestNamed` type for verifying specific requests in tests.
37+
* New `test_helpers.ExecuteOnAll` function to execute operations on all
38+
instances in parallel with context support.
3739

3840
### Changed
3941

@@ -62,11 +64,16 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
6264
become private, `SetError` and `SetResponse` become private (#470).
6365
* `ConnectionPool.Close()` returns a single error value, combining multiple
6466
errors using errors.Join() (#540).
67+
* `test_helpers.CheckPoolStatuses` and `test_helpers.ProcessListenOnInstance`
68+
now accept typed arguments (`CheckStatusesArgs` and `ListenOnInstanceArgs`
69+
respectively) instead of `interface{}`.
6570

6671
### Removed
6772

6873
* Deprecated `NewCall16Request` and `NewCall17Request` constructors. Use
6974
`NewCallRequest` instead.
75+
* `test_helpers.Retry` function. Use `assert.Eventually` from testify instead.
76+
`test_helpers.WaitUntilReconnected` reimplemented without `Retry`.
7077

7178
### Fixed
7279

test_helpers/pool_helper.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ func SetInstanceRO(ctx context.Context, dialer tarantool.Dialer, connOpts tarant
224224
return nil
225225
}
226226

227-
func ExecuteOnAll(ctx context.Context, dialers []tarantool.Dialer, fn func(context.Context, tarantool.Dialer, int) error) error {
227+
func ExecuteOnAll(ctx context.Context, dialers []tarantool.Dialer,
228+
fn func(context.Context, tarantool.Dialer, int) error) error {
228229
var wg sync.WaitGroup
229230
var errs []error
230231
var mu sync.Mutex

0 commit comments

Comments
 (0)