Skip to content

Commit 017f820

Browse files
committed
Remove extraneous space in test string to get passing in both Darwin and Linux
1 parent 2cd4d5f commit 017f820

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TestFoundation/TestURLProtectionSpace.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TestURLProtectionSpace : XCTestCase {
2323
realm: nil,
2424
authenticationMethod: "basic"
2525
)
26-
XCTAssert(space.description.hasPrefix("<\(type(of: space)) "))
26+
XCTAssert(space.description.hasPrefix("<\(type(of: space))"))
2727
XCTAssert(space.description.hasSuffix(": Host:apple.com, Server:http, Auth-Scheme:NSURLAuthenticationMethodDefault, Realm:(null), Port:80, Proxy:NO, Proxy-Type:(null)"))
2828

2929
space = URLProtectionSpace(
@@ -33,7 +33,7 @@ class TestURLProtectionSpace : XCTestCase {
3333
realm: nil,
3434
authenticationMethod: "NSURLAuthenticationMethodHTMLForm"
3535
)
36-
XCTAssert(space.description.hasPrefix("<\(type(of: space)) "))
36+
XCTAssert(space.description.hasPrefix("<\(type(of: space))"))
3737
XCTAssert(space.description.hasSuffix(": Host:apple.com, Server:http, Auth-Scheme:NSURLAuthenticationMethodHTMLForm, Realm:(null), Port:80, Proxy:NO, Proxy-Type:(null)"))
3838
}
3939
}

0 commit comments

Comments
 (0)