Skip to content

Commit

Permalink
pool: Update AIO tests for new pool constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Baidakov <[email protected]>
  • Loading branch information
smallhive committed Jun 30, 2023
1 parent 1a33802 commit e11a7d5
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions pool/pool_aio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,7 @@ func TestPoolInterfaceWithAIO(t *testing.T) {

nodeAddr := "grpc://localhost:8080"

opts := InitParameters{
signer: signer,
nodeParams: []NodeParam{
{1, nodeAddr, 1},
},
clientRebalanceInterval: 30 * time.Second,
}

pool, err := NewPool(opts)
pool, err := New(NewFlatNodeParams([]string{nodeAddr}), signer, DefaultOptions())
require.NoError(t, err)
require.NoError(t, pool.Dial(ctx))

Expand Down Expand Up @@ -259,15 +251,7 @@ func TestPoolWaiterWithAIO(t *testing.T) {
account, signer, cont := testData(t)
var eaclTable eacl.Table

opts := InitParameters{
signer: signer,
nodeParams: []NodeParam{
{1, "grpc://localhost:8080", 1},
},
clientRebalanceInterval: 30 * time.Second,
}

pool, err := NewPool(opts)
pool, err := New(NewFlatNodeParams([]string{"grpc://localhost:8080"}), signer, DefaultOptions())
require.NoError(t, err)
require.NoError(t, pool.Dial(ctx))

Expand Down

0 comments on commit e11a7d5

Please sign in to comment.