Split this test so I can figure out CI failure
This commit is contained in:
@@ -204,7 +204,9 @@ class PathTests: XCTestCase {
|
|||||||
XCTAssertThrowsError(try root.foo.copy(to: root.bar))
|
XCTAssertThrowsError(try root.foo.copy(to: root.bar))
|
||||||
try root.foo.copy(to: root.bar, overwrite: true)
|
try root.foo.copy(to: root.bar, overwrite: true)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func testCopyToExistingDirectoryFails() throws {
|
||||||
// test copy errors if directory exists at destination, even with overwrite
|
// test copy errors if directory exists at destination, even with overwrite
|
||||||
try Path.mktemp { root in
|
try Path.mktemp { root in
|
||||||
try root.foo.touch()
|
try root.foo.touch()
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ extension PathTests {
|
|||||||
("testConcatenation", testConcatenation),
|
("testConcatenation", testConcatenation),
|
||||||
("testCopyInto", testCopyInto),
|
("testCopyInto", testCopyInto),
|
||||||
("testCopyTo", testCopyTo),
|
("testCopyTo", testCopyTo),
|
||||||
|
("testCopyToExistingDirectoryFails", testCopyToExistingDirectoryFails),
|
||||||
("testDataExtensions", testDataExtensions),
|
("testDataExtensions", testDataExtensions),
|
||||||
("testDelete", testDelete),
|
("testDelete", testDelete),
|
||||||
("testDynamicMember", testDynamicMember),
|
("testDynamicMember", testDynamicMember),
|
||||||
|
|||||||
Reference in New Issue
Block a user