Skip to content

Commit

Permalink
pool: Inline constant polling intervals in AIO tests
Browse files Browse the repository at this point in the history
They are polling, not 'pooling', and intervals, not timeouts.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
  • Loading branch information
cthulhu-rider committed Dec 4, 2024
1 parent 95355bb commit 0ac9211
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pool/pool_aio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,7 @@ func testPoolWaiterWithAIO(t *testing.T, nodeAddr string) {
require.NoError(t, err)
require.NoError(t, pool.Dial(ctx))

defaultPoolingTimeout := 1 * time.Second
wait := waiter.NewWaiter(pool, defaultPoolingTimeout)
wait := waiter.NewWaiter(pool, time.Second)

// create container
ctxTimeout, cancel := context.WithTimeout(ctx, defaultTimeOut)
Expand Down Expand Up @@ -502,8 +501,7 @@ func testClientWaiterWithAIO(t *testing.T, nodeAddr string) {
panic(fmt.Errorf("dial %v", err))
}

defaultPoolingTimeout := 1 * time.Second
wait := waiter.NewWaiter(cl, defaultPoolingTimeout)
wait := waiter.NewWaiter(cl, time.Second)

// create container
ctxTimeout, cancel := context.WithTimeout(ctx, defaultTimeOut)
Expand Down

0 comments on commit 0ac9211

Please sign in to comment.