From 714b5e56d49e59f8e8e1b5b350e90cd8dc29ea81 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Fri, 25 Oct 2019 19:22:53 +0200 Subject: [PATCH] Fix search domains unit test --- TunnelKitTests/OpenVPN/ConfigurationParserTests.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TunnelKitTests/OpenVPN/ConfigurationParserTests.swift b/TunnelKitTests/OpenVPN/ConfigurationParserTests.swift index 0ae7845..0af194b 100644 --- a/TunnelKitTests/OpenVPN/ConfigurationParserTests.swift +++ b/TunnelKitTests/OpenVPN/ConfigurationParserTests.swift @@ -53,7 +53,8 @@ class ConfigurationParserTests: XCTestCase { let lines = [ "dhcp-option DNS 8.8.8.8", "dhcp-option DNS6 ffff::1", - "dhcp-option DOMAIN example.com", + "dhcp-option DOMAIN one.com", + "dhcp-option DOMAIN two.net", "dhcp-option PROXY_HTTP 1.2.3.4 8081", "dhcp-option PROXY_HTTPS 7.8.9.10 8082", "dhcp-option PROXY_AUTO_CONFIG_URL https://pac/", @@ -63,7 +64,7 @@ class ConfigurationParserTests: XCTestCase { let parsed = try! OpenVPN.ConfigurationParser.parsed(fromLines: lines).configuration XCTAssertEqual(parsed.dnsServers, ["8.8.8.8", "ffff::1"]) - XCTAssertEqual(parsed.searchDomain, "example.com") + XCTAssertEqual(parsed.searchDomains, ["one.com", "two.net"]) XCTAssertEqual(parsed.httpProxy?.address, "1.2.3.4") XCTAssertEqual(parsed.httpProxy?.port, 8081) XCTAssertEqual(parsed.httpsProxy?.address, "7.8.9.10")