1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 23:47:07 -05:00

fix test break

This commit is contained in:
Darien Raymond 2016-12-30 23:30:35 +01:00
parent a44d556667
commit 3cc0783d9c
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 5 additions and 3 deletions

View File

@ -26,7 +26,7 @@ func (v *Config) BuildCertificates() []tls.Certificate {
func (v *Config) GetTLSConfig() *tls.Config { func (v *Config) GetTLSConfig() *tls.Config {
config := &tls.Config{ config := &tls.Config{
ClientSessionCache: globalSessionCache, ClientSessionCache: globalSessionCache,
NextProtos: []string{"http/2", "spdy/3"}, //NextProtos: []string{"http/2.0", "spdy/3", "http/1.1"},
} }
if v == nil { if v == nil {
return config return config

View File

@ -2,6 +2,8 @@ package websocket_test
import ( import (
"io/ioutil" "io/ioutil"
"os"
"path/filepath"
"testing" "testing"
"time" "time"
@ -100,8 +102,8 @@ func Test_listenWSAndDial_TLS(t *testing.T) {
AllowInsecure: true, AllowInsecure: true,
Certificate: []*v2tls.Certificate{ Certificate: []*v2tls.Certificate{
{ {
Certificate: ReadFile("./../../../testing/tls/cert.pem", assert), Certificate: ReadFile(filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", "testing", "tls", "cert.pem"), assert),
Key: ReadFile("./../../../testing/tls/key.pem", assert), Key: ReadFile(filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", "testing", "tls", "key.pem"), assert),
}, },
}, },
} }