From fce9284b3aa3493f88208cfc46a87aca3b3fad60 Mon Sep 17 00:00:00 2001 From: suiahae <45323123+suiahae@users.noreply.github.com> Date: Sun, 29 Jan 2023 12:49:23 +0800 Subject: [PATCH] make up the missing new test parameter Make up the test parameters (max_delay_time) lost due to mistakes in client_test.go. After this fix, newly added functions can be tested correctly (Does frpc perform as expected when max_delay_time is set to a value other than the default (20)?). --- pkg/config/client_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/config/client_test.go b/pkg/config/client_test.go index b75c5fab..0f782f6e 100644 --- a/pkg/config/client_test.go +++ b/pkg/config/client_test.go @@ -67,6 +67,7 @@ var testClientBytesWithFull = []byte(` meta_var1 = 123 meta_var2 = 234 udp_packet_size = 1509 + max_delay_time = 60 # all proxy [ssh] @@ -296,7 +297,7 @@ func Test_LoadClientCommonConf(t *testing.T) { }, UDPPacketSize: 1509, IncludeConfigFiles: []string{}, - MaxDelayTime: 20, + MaxDelayTime: 60, } common, err := UnmarshalClientConfFromIni(testClientBytesWithFull)