forked from quic-go/quic-go
fix skipping of racy version negotiation integration test
This commit is contained in:
@@ -57,16 +57,13 @@ var _ = Describe("Handshake tests", func() {
|
||||
return server
|
||||
}
|
||||
|
||||
if !israce.Enabled {
|
||||
Context("Version Negotiation", func() {
|
||||
var supportedVersions []protocol.VersionNumber
|
||||
|
||||
BeforeEach(func() {
|
||||
supportedVersions = protocol.SupportedVersions
|
||||
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() {
|
||||
@@ -100,6 +97,7 @@ var _ = Describe("Handshake tests", func() {
|
||||
Expect(sess.Close()).To(Succeed())
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Context("Certifiate validation", func() {
|
||||
for _, v := range protocol.SupportedVersions {
|
||||
|
||||
Reference in New Issue
Block a user