Amir Khan 1 год назад
Родитель
Сommit
3f7f28d022
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      psiphon/common/quic/obfuscator_test.go

+ 4 - 2
psiphon/common/quic/obfuscator_test.go

@@ -29,6 +29,8 @@ import (
 	"testing"
 	"testing"
 	"time"
 	"time"
 
 
+	tls "github.com/Psiphon-Labs/psiphon-tls"
+	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common"
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/errors"
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/errors"
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/prng"
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/prng"
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/transforms"
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/transforms"
@@ -117,7 +119,7 @@ func runNonceTransformer(t *testing.T, quicVersion string) {
 
 
 		// Dial with nonce transformer
 		// Dial with nonce transformer
 
 
-		Dial(
+		_, _ = Dial(
 			ctx,
 			ctx,
 			packetConn,
 			packetConn,
 			serverAddress,
 			serverAddress,
@@ -134,7 +136,7 @@ func runNonceTransformer(t *testing.T, quicVersion string) {
 			false,
 			false,
 			false,
 			false,
 			false, // Disable obfuscated PSK
 			false, // Disable obfuscated PSK
-			nil,
+			common.WrapClientSessionCache(tls.NewLRUClientSessionCache(0), "test"),
 		)
 		)
 
 
 		return nil
 		return nil