From 3ef46151d26b00d4681568e4210186580a30bd32 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 2 Nov 2021 18:54:22 +0300 Subject: [PATCH] [#102] test: Set up pool with SessionExpiration value neofs-node v0.26.1 release tracks session token expiration more closely, so it has to be specified correctly. Signed-off-by: Alex Vanin --- integration_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/integration_test.go b/integration_test.go index 9ed7837..cb9ebd1 100644 --- a/integration_test.go +++ b/integration_test.go @@ -7,6 +7,7 @@ import ( "encoding/json" "fmt" "io" + "math" "mime/multipart" "net/http" "sort" @@ -35,7 +36,7 @@ type putResponse struct { func TestIntegration(t *testing.T) { rootCtx := context.Background() aioImage := "nspccdev/neofs-aio-testcontainer:" - versions := []string{"0.24.0", "0.25.1", "latest"} + versions := []string{"0.24.0", "0.25.1", "0.26.1", "latest"} key, err := keys.NewPrivateKeyFromHex("1dd37fba80fec4e6a6f13fd708d8dcb3b29def768017052f6c930fa1c5d90bbb") require.NoError(t, err) @@ -269,9 +270,10 @@ func getPool(ctx context.Context, t *testing.T, key *keys.PrivateKey) pool.Pool pb.AddNode("localhost:8080", 1) opts := &pool.BuilderOptions{ - Key: &key.PrivateKey, - NodeConnectionTimeout: 5 * time.Second, - NodeRequestTimeout: 5 * time.Second, + Key: &key.PrivateKey, + NodeConnectionTimeout: 5 * time.Second, + NodeRequestTimeout: 5 * time.Second, + SessionExpirationEpoch: math.MaxUint64, } clientPool, err := pb.Build(ctx, opts) require.NoError(t, err)