Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
try sync.Mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Jan 26, 2017
1 parent 360dcb6 commit 08c3756
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

var (
exeSuffix string // ".exe" on Windows
mu sync.RWMutex
mu sync.Mutex
)

func init() {
Expand Down Expand Up @@ -200,8 +200,8 @@ func (tg *testgoData) doRun(args []string) error {
// run runs the test go command, and expects it to succeed.
func (tg *testgoData) run(args ...string) {
if runtime.GOOS == "windows" {
mu.RLock()
defer mu.RUnlock()
mu.Lock()
defer mu.Unlock()
}
if status := tg.doRun(args); status != nil {
tg.t.Logf("go %v failed unexpectedly: %v", args, status)
Expand Down

0 comments on commit 08c3756

Please sign in to comment.