|
@@ -440,6 +440,10 @@ func TestTactics(t *testing.T) {
|
|
|
|
|
|
|
|
tacticsConnectionWorkerPoolSize = 6
|
|
tacticsConnectionWorkerPoolSize = 6
|
|
|
|
|
|
|
|
|
|
+ tacticsLimitTunnelProtocols = protocol.TunnelProtocols{}
|
|
|
|
|
+ jsonTacticsLimitTunnelProtocols = ``
|
|
|
|
|
+ expectedApplyCount = 2
|
|
|
|
|
+
|
|
|
// Omitting LimitTunnelProtocols entirely tests this bug fix: When a new
|
|
// Omitting LimitTunnelProtocols entirely tests this bug fix: When a new
|
|
|
// tactics payload is obtained, all previous parameters should be cleared.
|
|
// tactics payload is obtained, all previous parameters should be cleared.
|
|
|
//
|
|
//
|
|
@@ -448,11 +452,6 @@ func TestTactics(t *testing.T) {
|
|
|
// omitted in the new tactics; if FetchTactics fails to clear the old
|
|
// omitted in the new tactics; if FetchTactics fails to clear the old
|
|
|
// LimitTunnelProtocols then the test will fail.
|
|
// LimitTunnelProtocols then the test will fail.
|
|
|
|
|
|
|
|
- tacticsLimitTunnelProtocols = protocol.TunnelProtocols{}
|
|
|
|
|
- jsonTacticsLimitTunnelProtocols = ``
|
|
|
|
|
-
|
|
|
|
|
- expectedApplyCount = 2
|
|
|
|
|
-
|
|
|
|
|
tacticsConfig = fmt.Sprintf(
|
|
tacticsConfig = fmt.Sprintf(
|
|
|
tacticsConfigTemplate,
|
|
tacticsConfigTemplate,
|
|
|
encodedRequestPublicKey,
|
|
encodedRequestPublicKey,
|