dingoblog / dingo

Blog engine written in Go
MIT License
284 stars 37 forks source link

Update to run tests concurrently #29

Closed nak3 closed 8 years ago

dinever commented 8 years ago

Hi @nak3, thanks for the contrib. This is exactly what we need.

Just one more thing, what do we think about using os.TempDir and filepath.Join to make it platform-independent?

For example:

import (
    "os"
    "fmt"
    "time"
    "path/filepath"
)

testDB := fmt.Sprintf(filepath.Join(os.TempDir(), "ding-testdb-%s"), fmt.Sprintf(time.Now().Format("20060102T150405.000")))
nak3 commented 8 years ago

@dinever That's smarter. Thank you for your advice! I updated.

dinever commented 8 years ago

Thanks @nak3!