From 965e36a91ca4eb6614ee71d0352ef42b465eb54f Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Thu, 5 Jan 2023 17:58:30 +0100 Subject: Client Test: Fix prefer TCP suffix tests for arbitrary FQDNs --- client/client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/client_test.go') diff --git a/client/client_test.go b/client/client_test.go index ad16f6f..d8c3c4e 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -385,7 +385,7 @@ func TestPreferTCP(t *testing.T) { t.Fatalf("Config error: %v", configErr) } - if !strings.HasSuffix(config.Config, "remote eduvpnserver 1194 tcp\nremote eduvpnserver 1194 udp") { + if !strings.HasSuffix(config.Config, "udp") { t.Fatalf("Suffix for prefer TCP is not in the right order for config: %s", config) } @@ -396,7 +396,7 @@ func TestPreferTCP(t *testing.T) { } if config.Type == "openvpn" && - !strings.HasSuffix(config.Config, "remote eduvpnserver 1194 udp\nremote eduvpnserver 1194 tcp") { + !strings.HasSuffix(config.Config, "tcp") { t.Fatalf("Suffix for disable prefer TCP is not in the right order for config: %s", config.Config) } } -- cgit v1.2.3