Skip to content

Commit

Permalink
Merge pull request #88 from GreenmaskIO/fix/integration_s3_test
Browse files Browse the repository at this point in the history
fix: Fixed integration test for s3 storage
  • Loading branch information
wwoytenko authored Apr 29, 2024
2 parents 6415bd2 + 86a45ec commit fe1940d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/storages/s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit fe1940d

Please sign in to comment.