Skip to content

Commit

Permalink
randomize prefix, don't trust system clock to've increased
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Jan 1, 2024
1 parent 7f61ec0 commit 52b4ae1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flow/e2e/s3/s3_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/PeerDB-io/peer-flow/connectors/utils"
"github.com/PeerDB-io/peer-flow/e2eshared"
"github.com/PeerDB-io/peer-flow/generated/protos"
"github.com/PeerDB-io/peer-flow/shared"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/s3"
)
Expand Down Expand Up @@ -52,7 +53,7 @@ func NewS3TestHelper(switchToGCS bool) (*S3TestHelper, error) {
if err != nil {
return nil, err
}
prefix := fmt.Sprintf("peerdb_test/%d", time.Now().UnixNano())
prefix := fmt.Sprintf("peerdb_test/%d_%s", time.Now().Unix(), shared.RandomString(6))
return &S3TestHelper{
client,
&protos.S3Config{
Expand Down

0 comments on commit 52b4ae1

Please sign in to comment.