Skip to content

Commit

Permalink
replace minio endpoint function
Browse files Browse the repository at this point in the history
  • Loading branch information
aditsachde committed Jul 18, 2024
1 parent e7e57c9 commit 142e990
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,14 @@ func minioSetup(ctx context.Context) (string, string, string, string, string, fu
log.Fatalf("failed to start container: %s", err)
}


minioEndpoint, err := minioContainer.ConnectionString(ctx)
minioPort, err := minioContainer.MappedPort(ctx, "9000/tcp")
if err != nil {
log.Fatalf("failed to get connection string: %s", err)
log.Fatalf("failed to get mapped port: %s", err)
}
minioEndpoint = "http://" + minioEndpoint

minioEndpoint := "http://127.0.0.1:" + minioPort.Port()
minioUsername, minioPassword := minioContainer.Username, minioContainer.Password

// We could do this by adding to the ctlog.Bucket, but this will never be used otherwise
bucketName := "testbucket"
bucketRegion := "us-east-1"
Expand Down

0 comments on commit 142e990

Please sign in to comment.