From 86a45ec7d373f9cd669d7d477f202e02852c277e Mon Sep 17 00:00:00 2001 From: Vadim Voitenko Date: Mon, 29 Apr 2024 22:37:12 +0300 Subject: [PATCH] fix: Fixed integration test for s3 storage --- tests/integration/storages/s3_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/storages/s3_test.go b/tests/integration/storages/s3_test.go index 987a8c14..0bc51c56 100644 --- a/tests/integration/storages/s3_test.go +++ b/tests/integration/storages/s3_test.go @@ -21,10 +21,10 @@ import ( "path" "slices" - "github.com/greenmaskio/greenmask/internal/storages" "github.com/rs/zerolog" "github.com/stretchr/testify/suite" + "github.com/greenmaskio/greenmask/internal/storages" "github.com/greenmaskio/greenmask/internal/storages/s3" ) @@ -90,7 +90,7 @@ func (suite *S3StorageSuite) TestS3Ops() { suite.Require().Len(dirs, 1) suite.Require().Equal("test.txt", files[0]) s3Dir := dirs[0].(*s3.Storage) - suite.Require().Equal(path.Join(suite.cfg.Bucket, suite.cfg.Prefix, "testdb")+"/", s3Dir.GetCwd()) + suite.Require().Equal(path.Join(suite.cfg.Prefix, "testdb")+"/", s3Dir.GetCwd()) nextDir := dirs[0] files, dirs, err = nextDir.ListDir(context.Background())