Hacker News new | ask | show | jobs
by helper 3585 days ago
How easy is it to embed this into go tests? Right now I use goamz/s3test for that, but it has a lot of limitations.
2 comments

goofys and s3fs both use s3proxy for this, which works fine as long as you are ok with having Java as a test dependency: https://github.com/kahing/goofys/blob/master/test/run-tests....
I don't want to run it in an external process, I want to run it in a goroutine.
For that you can just do

```

package main

import minio "github.com/minio/minio/cmd"

func main() {

        go minio.Main()

        ... do your stuff ...
}

```