From cc8170f4fefc9f92cb5130c1005fad3c76669c14 Mon Sep 17 00:00:00 2001 From: Qiu Yuzhou Date: Sun, 16 Sep 2018 22:29:11 +0800 Subject: [PATCH] Fixes tests. Remove ota --- ShadowsocksX-NGTests/ServerProfileTests.swift | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ShadowsocksX-NGTests/ServerProfileTests.swift b/ShadowsocksX-NGTests/ServerProfileTests.swift index c3b4d428..5149828c 100644 --- a/ShadowsocksX-NGTests/ServerProfileTests.swift +++ b/ShadowsocksX-NGTests/ServerProfileTests.swift @@ -38,7 +38,6 @@ class ServerProfileTests: XCTestCase { XCTAssertEqual(newProfile?.method, profile.method) XCTAssertEqual(newProfile?.password, profile.password) XCTAssertEqual(newProfile?.remark, profile.remark) - XCTAssertEqual(newProfile?.ota, profile.ota) } func testInitWithPlainURL() { @@ -53,7 +52,6 @@ class ServerProfileTests: XCTestCase { XCTAssertEqual(profile?.method, "aes-256-cfb") XCTAssertEqual(profile?.password, "password") XCTAssertEqual(profile?.remark, "") - XCTAssertEqual(profile?.ota, false) } func testInitWithPlainURLandQuery() { @@ -68,7 +66,6 @@ class ServerProfileTests: XCTestCase { XCTAssertEqual(profile?.method, "aes-256-cfb") XCTAssertEqual(profile?.password, "password") XCTAssertEqual(profile?.remark, "Prism") - XCTAssertEqual(profile?.ota, true) } func testInitWithPlainURLandAnotherQuery() { @@ -83,7 +80,6 @@ class ServerProfileTests: XCTestCase { XCTAssertEqual(profile?.method, "aes-256-cfb") XCTAssertEqual(profile?.password, "password") XCTAssertEqual(profile?.remark, "Prism") - XCTAssertEqual(profile?.ota, false) } func testInitWithBase64EncodedURL() { @@ -99,7 +95,6 @@ class ServerProfileTests: XCTestCase { XCTAssertEqual(profile?.method, "aes-256-cfb") XCTAssertEqual(profile?.password, "password") XCTAssertEqual(profile?.remark, "") - XCTAssertEqual(profile?.ota, false) } func testInitWithBase64EncodedURLandQuery() { @@ -115,7 +110,6 @@ class ServerProfileTests: XCTestCase { XCTAssertEqual(profile?.method, "aes-256-cfb") XCTAssertEqual(profile?.password, "password") XCTAssertEqual(profile?.remark, "Prism") - XCTAssertEqual(profile?.ota, true) } func testInitWithEmptyURL() { @@ -148,7 +142,6 @@ class ServerProfileTests: XCTestCase { XCTAssertEqual(profile?.method, "aes-256-cfb") XCTAssertEqual(profile?.password, "password") XCTAssertEqual(profile?.remark, "Prism") - XCTAssertEqual(profile?.ota, true) } func testInitWithSIP002URLProfileName() {