forked from quic-go/quic-go
Merge pull request #1784 from lucas-clemente/disable-vn-test-race-detector
don't run the version negotiation tests with race detector
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
quic "github.com/lucas-clemente/quic-go"
|
quic "github.com/lucas-clemente/quic-go"
|
||||||
|
"github.com/lucas-clemente/quic-go/integrationtests/tools/israce"
|
||||||
"github.com/lucas-clemente/quic-go/internal/protocol"
|
"github.com/lucas-clemente/quic-go/internal/protocol"
|
||||||
"github.com/lucas-clemente/quic-go/internal/qerr"
|
"github.com/lucas-clemente/quic-go/internal/qerr"
|
||||||
"github.com/lucas-clemente/quic-go/internal/testdata"
|
"github.com/lucas-clemente/quic-go/internal/testdata"
|
||||||
@@ -62,6 +63,10 @@ var _ = Describe("Handshake tests", func() {
|
|||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
supportedVersions = protocol.SupportedVersions
|
supportedVersions = protocol.SupportedVersions
|
||||||
protocol.SupportedVersions = append(protocol.SupportedVersions, []protocol.VersionNumber{7, 8, 9, 10}...)
|
protocol.SupportedVersions = append(protocol.SupportedVersions, []protocol.VersionNumber{7, 8, 9, 10}...)
|
||||||
|
|
||||||
|
if israce.Enabled {
|
||||||
|
Skip("This test modifies protocol.SupportedVersions, and can't be run with race detector.")
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
AfterEach(func() {
|
AfterEach(func() {
|
||||||
|
|||||||
6
integrationtests/tools/israce/norace.go
Normal file
6
integrationtests/tools/israce/norace.go
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
// +build !race
|
||||||
|
|
||||||
|
package israce
|
||||||
|
|
||||||
|
// Enabled reports if the race detector is enabled.
|
||||||
|
const Enabled = false
|
||||||
6
integrationtests/tools/israce/race.go
Normal file
6
integrationtests/tools/israce/race.go
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
// +build race
|
||||||
|
|
||||||
|
package israce
|
||||||
|
|
||||||
|
// Enabled reports if the race detector is enabled.
|
||||||
|
const Enabled = true
|
||||||
Reference in New Issue
Block a user