Skip to content

Commit 0bd5ec1

Browse files
committed
compiler/natives/src/encoding/gob: Skip TestTypeRace.
TestTypeRace was added in Go 1.10, and it needs to be skipped because it relies on sync.WaitGroup to behave correctly under concurrency. However, encoding/gob is currently configured to use nosync, which cannot succeed. Since this is a new test, opt to skip it for now rather than making it succeed by replacing nosync with sync. Related to golang/go@1a9f27d. Fixes: === RUN TestTypeRace --- FAIL: TestTypeRace (0.00s) Error: sync: WaitGroup counter not zero FAIL encoding/gob 3.030s
1 parent 12f65e2 commit 0bd5ec1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/natives/src/encoding/gob/gob_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,9 @@ func TestEndToEnd(t *testing.T) {
9898
t.Errorf("nil map received")
9999
}
100100
}
101+
102+
func TestTypeRace(t *testing.T) {
103+
// encoding/gob currently uses nosync. This test uses sync.WaitGroup and
104+
// cannot succeed when nosync is used.
105+
t.Skip("using nosync")
106+
}

0 commit comments

Comments
 (0)