franela / goblin

Minimal and Beautiful Go testing framework
MIT License
887 stars 79 forks source link

Concurrency race when running in parallel #99

Closed xpzouying closed 3 years ago

xpzouying commented 3 years ago

As PR #98 Says, concurrency race panic when running in parallel.

parseFlag() function only need do once, so use sync.Once to do init things.